1 instantiation of TemporaryDirectory
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
32
var subdir = new
TemporaryDirectory
(Path.Combine(Root, name), this);
13 references to TemporaryDirectory
Microsoft.Extensions.ApiDescription.Tool.Tests (13)
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (3)
17
private readonly
TemporaryDirectory
_directory;
21
public TemporaryCSharpProject(string name,
TemporaryDirectory
directory, string sdk)
123
public
TemporaryDirectory
Dir() => _directory;
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (10)
15
private readonly List<
TemporaryDirectory
> _subdirs = new List<
TemporaryDirectory
>();
17
private readonly
TemporaryDirectory
? _parent;
24
private TemporaryDirectory(string path,
TemporaryDirectory
parent)
30
public
TemporaryDirectory
SubDir(string name)
32
var
subdir = new TemporaryDirectory(Path.Combine(Root, name), this);
51
public
TemporaryDirectory
WithFile(string name, string contents = "")
57
public
TemporaryDirectory
WithContentFile(string name)
67
public
TemporaryDirectory
Up()
80
foreach (
var
dir in _subdirs)