@@ -10,7 +10,7 @@ public class LockFinderTest
1010{
1111 [ TestCase ( @"C:\PathThatDoesNotExist" ) ]
1212 [ TestCase ( @"C:\Windows\system.ini" ) ] // existing but not locked path
13- public void Returns_empty_list_If_path_does_mot_exist_or_not_locked ( string path )
13+ public void Returns_empty_list_If_path_does_not_exist_or_not_locked ( string path )
1414 {
1515 var processes = LockFinder . FindWhatProcessesLockPath ( path ) ;
1616 ClassicAssert . IsEmpty ( processes ) ;
@@ -60,6 +60,38 @@ public void Returns_empty_list_If_path_does_mot_exist_or_not_locked(string path)
6060 @"C:\Windows\en-US\explorer.exe.mUi" ,
6161 @"C:\Windows\Fonts\StaticCache.dat"
6262 } ) ]
63+ [ TestCase (
64+ @"C:\WINDOWS\SYSTEM32\ntdll.dll" ,
65+ "explorer.exe" ,
66+ new [ ]
67+ {
68+ @"C:\WINDOWS\SYSTEM32\ntdll.dll"
69+ } ) ]
70+ [ TestCase (
71+ @"C:\Windows\en-US\explorer.exe.mui" ,
72+ "explorer.exe" ,
73+ new [ ]
74+ {
75+ @"C:\Windows\en-US\explorer.exe.mui"
76+ } ) ]
77+ [ TestCase (
78+ @"C:\" ,
79+ "exploRer.exe" ,
80+ new [ ]
81+ {
82+ @"C:\Windows\en-US\explorer.exe.mui" ,
83+ @"C:\Windows\en-US\explorer.exe.mUi" ,
84+ @"C:\Windows\Fonts\StaticCache.dat"
85+ } ) ]
86+ [ TestCase (
87+ @"C:/" ,
88+ "exploRer.exe" ,
89+ new [ ]
90+ {
91+ @"C:\Windows\en-US\explorer.exe.mui" ,
92+ @"C:\Windows\en-US\explorer.exe.mUi" ,
93+ @"C:\Windows\Fonts\StaticCache.dat"
94+ } ) ]
6395 public void If_path_is_locked_Returns_information_about_processes_that_lock_this_path ( string path , string processName , IEnumerable < string > pathThatShouldBeLocked )
6496 {
6597 var processes = LockFinder . FindWhatProcessesLockPath ( path ) . ToList ( ) ;
0 commit comments