Skip to content

Commit e6754e2

Browse files
committed
Added default implementation for Open(..) in class TestFileSystem
1 parent 38ee45f commit e6754e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/GitVersionCore.Tests/Helpers/TestFileSystem.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public IEnumerable<string> DirectoryEnumerateFiles(string directory, string sear
7878
throw new NotImplementedException();
7979
}
8080

81+
public FileStream Open(string path, FileMode mode, FileAccess access, FileShare share)
82+
{
83+
return new FileStream(path, mode, access, share);
84+
}
85+
8186
public Stream OpenWrite(string path)
8287
{
8388
return new TestStream(path, this);

0 commit comments

Comments
 (0)