2 instantiations of DirectoryNode
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
TestInfrastructure\DirectoryNode.cs (1)
129
subDirectory = new
DirectoryNode
(directoryPath);
TestInfrastructure\VirtualRazorProjectFileSystem.cs (1)
8
private readonly DirectoryNode _root = new
DirectoryNode
("/");
15 references to DirectoryNode
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (15)
TestInfrastructure\DirectoryNode.cs (12)
19
public List<
DirectoryNode
> Directories { get; } = new List<
DirectoryNode
>();
33
var
directory = GetOrAddDirectory(this, directoryPath, createIfNotExists: true);
39
public
DirectoryNode
GetDirectory(string path)
56
foreach (
var
directory in Directories)
73
var
directory = GetOrAddDirectory(this, directoryPath);
108
private static
DirectoryNode
GetOrAddDirectory(
109
DirectoryNode
directory,
122
var
subDirectory = FindSubDirectory(directory, path);
144
private static
DirectoryNode
FindSubDirectory(
DirectoryNode
parentDirectory, string path)
153
var
currentDirectory = parentDirectory.Directories[i];
TestInfrastructure\FileNode.cs (1)
18
public
DirectoryNode
Directory { get; set; }
TestInfrastructure\VirtualRazorProjectFileSystem.cs (2)
8
private readonly
DirectoryNode
_root = new DirectoryNode("/");
13
var
directory = _root.GetDirectory(basePath);