Created
August 4, 2015 15:57
-
-
Save borismod/c6cb2d30ffb51a6d8cc3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| namespace System.IO.Abstractions.TestingHelpers | |
| { | |
| [Serializable] | |
| public class MockFileSystem : IFileSystem, IMockFileDataAccessor | |
| { | |
| #region Implementation of IFileSystem | |
| #endregion | |
| public IEnumerable<string> AllPaths | |
| public IEnumerable<string> AllFiles | |
| public IEnumerable<string> AllDirectories | |
| public MockFileData GetFile(string path, bool returnNullObject = false) | |
| public void AddFile(string path, MockFileData mockFile) | |
| public void AddDirectory(string path) | |
| public void RemoveFile(string path) | |
| public bool FileExists(string path) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment