Skip to content

Commit 78556e6

Browse files
authored
fix: fix directory tests that fail on windows under certain conditions (#889)
Fix failing directory tests on windows
1 parent 33b0b83 commit 78556e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Testably.Abstractions.Tests/FileSystem/Directory/ExistsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public async Task Exists_File_ShouldReturnFalse(string path)
2929
[Fact]
3030
public async Task Exists_ForwardSlash_ShouldReturnTrue()
3131
{
32-
FileSystem.InitializeIn("D:");
32+
FileSystem.InitializeIn("/");
3333

3434
bool result = FileSystem.Directory.Exists("/");
3535

Tests/Testably.Abstractions.Tests/FileSystem/DirectoryInfo/ExistsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public async Task Exists_File_ShouldReturnFalse(string path)
3939
[Fact]
4040
public async Task Exists_ForwardSlash_ShouldReturnTrue()
4141
{
42-
FileSystem.InitializeIn("D:");
42+
FileSystem.InitializeIn("/");
4343

4444
IDirectoryInfo sut = FileSystem.DirectoryInfo.New("/");
4545

0 commit comments

Comments
 (0)