Beispiel #1
0
 internal FakeFile(FakeFileSystemTree tree, FilePath path)
 {
     _tree   = tree;
     Path    = path;
     Exists  = false;
     Hidden  = false;
     Content = new byte[4096];
 }
Beispiel #2
0
        /// <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;
        }
Beispiel #3
0
 internal FakeDirectory(FakeFileSystemTree tree, DirectoryPath path)
 {
     _tree   = tree;
     Path    = path;
     Content = new FakeDirectoryContent(this, tree.Comparer);
 }