Skip to content

Commit a8653aa

Browse files
committed
Use Directoryseparatorchar
1 parent dbe1807 commit a8653aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Testably.Abstractions.Testing/MockFileSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public MockFileSystem WithDrive(string? drive,
223223
Action<IStorageDrive>? driveCallback = null)
224224
{
225225
IStorageDrive driveInfoMock =
226-
drive == null || string.Equals(drive, "\\", StringComparison.Ordinal)
226+
drive == null || string.Equals(drive, Execute.Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal)
227227
? Storage.MainDrive
228228
: Storage.GetOrAddDrive(drive);
229229
driveCallback?.Invoke(driveInfoMock);

0 commit comments

Comments
 (0)