Skip to content

Commit

Permalink
Added default implementation for Open(..) in class TestFileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
teneko committed Jun 24, 2020
1 parent 38ee45f commit e6754e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/GitVersionCore.Tests/Helpers/TestFileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public IEnumerable<string> DirectoryEnumerateFiles(string directory, string sear
throw new NotImplementedException();
}

public FileStream Open(string path, FileMode mode, FileAccess access, FileShare share)
{
return new FileStream(path, mode, access, share);
}

public Stream OpenWrite(string path)
{
return new TestStream(path, this);
Expand Down

0 comments on commit e6754e2

Please sign in to comment.