Skip to content

Commit 0e49ee3

Browse files
PatrykOlejniczakfgreinacher
authored andcommitted
Less strict test arrange.
1 parent abd7190 commit 0e49ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void MockFileStream_Flush_WritesByteToFile()
1515
// Arrange
1616
var filepath = XFS.Path(@"C:\something\foo.txt");
1717
var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>());
18-
fileSystem.AddFile(@"C:\something\foo.txt", new MockFileData(""));
18+
fileSystem.AddDirectory(@"C:\something");
1919

2020
var cut = new MockFileStream(fileSystem, filepath, MockFileStream.StreamType.WRITE);
2121

0 commit comments

Comments
 (0)