Skip to content

Commit 5402836

Browse files
committed
fix(475): Modified path in test to support unix environment as well
1 parent 87cf8f6 commit 5402836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ public void MockDirectory_GetFiles_Returns_Files_WithRelativePath()
797797
string directory = XFS.Path(@"C:\foo");
798798

799799
fileSystem.Directory.SetCurrentDirectory(directory);
800-
fileSystem.AddFile($@"C:\test.txt", new MockFileData("Some ASCII text."));
800+
fileSystem.AddFile(XFS.Path(@"C:\test.txt"), new MockFileData("Some ASCII text."));
801801

802802
Assert.AreEqual(fileSystem.Directory.GetFiles(XFS.Path(@"..\")).Length, 1); // Assert with relative path
803803
}

0 commit comments

Comments
 (0)