Example #1
0
 internal FakeFile(FakeFileSystemTree tree, FilePath path)
 {
     _tree  = tree;
     Path   = path;
     Exists = false;
     Hidden = false;
 }
Example #2
0
 internal FakeDirectory(FakeFileSystemTree tree, DirectoryPath path)
 {
     _tree    = tree;
     _path    = path;
     _content = new FakeDirectoryContent(this, tree.Comparer);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FakeFileSystem"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 public FakeFileSystem(IFileSystemEnvironment environment)
 {
     _tree = new FakeFileSystemTree(environment);
 }