-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce convenience methods into MockFileSystem
- `AddEmptyFile()` added which is a convenience wrapper for `AddFile()` with an empty `MockFileData`. - `AddFile()` overload added which consumes an `IFileInfo`. - `AddDirectory()` overload added which consumes an `IDirectoryInfo`. - `GetFile()` overload added which consumes an `IFileInfo`. Unit test added for `AddEmptyFile()` but not the others, as the test code for them would have very little value. Fixes TestableIO/System.IO.Abstractions.Extensions#32
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters