Modified behavior DirectoryLocker.cs
Refactoring DirectoryLockerTest.cs