Skip to content

Instantly share code, notes, and snippets.

@borismod
Created August 4, 2015 15:57
Show Gist options
  • Select an option

  • Save borismod/c6cb2d30ffb51a6d8cc3 to your computer and use it in GitHub Desktop.

Select an option

Save borismod/c6cb2d30ffb51a6d8cc3 to your computer and use it in GitHub Desktop.
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