コード例 #1
0
 internal FakeFile(FakeFileSystemTree tree, FilePath path)
 {
     _tree   = tree;
     Path    = path;
     Exists  = false;
     Hidden  = false;
     Content = new byte[4096];
 }
コード例 #2
0
ファイル: FakeFileSystem.cs プロジェクト: nirav72/spectre.io
        /// <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;
        }
コード例 #3
0
ファイル: FakeDirectory.cs プロジェクト: nirav72/spectre.io
 internal FakeDirectory(FakeFileSystemTree tree, DirectoryPath path)
 {
     _tree   = tree;
     Path    = path;
     Content = new FakeDirectoryContent(this, tree.Comparer);
 }