Skip to content

Commit d1307d9

Browse files
PatrykOlejniczakfgreinacher
authored andcommitted
Fix Unix support.
1 parent 0e49ee3 commit d1307d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

System.IO.Abstractions.TestingHelpers/MockFileStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public MockFileStream(
5757
}
5858
else
5959
{
60-
if (!mockFileDataAccessor.Directory.Exists(Path.GetDirectoryName(path)))
60+
if (!mockFileDataAccessor.Directory.Exists(mockFileDataAccessor.Path.GetDirectoryName(path)))
6161
{
6262
throw CommonExceptions.CouldNotFindPartOfPath(path);
6363
}

0 commit comments

Comments
 (0)