internal FakeFile(FakeFileSystemTree tree, FilePath path) { _tree = tree; Path = path; Exists = false; Hidden = false; Content = new byte[4096]; }
/// <summary> /// Initializes a new instance of the <see cref="FakeFileSystem"/> class. /// </summary> /// <param name="environment">The environment.</param> public FakeFileSystem(IEnvironment environment) { var tree = new FakeFileSystemTree(environment); _fileProvider = new FakeFileProvider(tree); _directoryProvider = new FakeDirectoryProvider(tree); _environment = environment; }
internal FakeDirectory(FakeFileSystemTree tree, DirectoryPath path) { _tree = tree; Path = path; Content = new FakeDirectoryContent(this, tree.Comparer); }