5 instantiations of TemporaryDirectory
Microsoft.DotNet.Open.Api.Tools.Tests (5)
OpenApiAddProjectTests.cs (2)
57
using var refProj = new
TemporaryDirectory
();
87
using var refProj = new
TemporaryDirectory
();
OpenApiRemoveTests.cs (1)
109
using var refProj = new
TemporaryDirectory
();
OpenApiTestBase.cs (1)
52
_tempDir = new
TemporaryDirectory
();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
32
var subdir = new
TemporaryDirectory
(Path.Combine(Root, name), this);
20 references to TemporaryDirectory
Microsoft.DotNet.Open.Api.Tools.Tests (20)
OpenApiAddProjectTests.cs (4)
23
using
var
refProj1 = project.Project.Dir().SubDir("refProj1");
24
using
var
refProj2 = project.Project.Dir().SubDir("refProj2");
57
using
var
refProj = new TemporaryDirectory();
87
using
var
refProj = new TemporaryDirectory();
OpenApiRemoveTests.cs (1)
109
using
var
refProj = new TemporaryDirectory();
OpenApiTestBase.cs (2)
16
protected readonly
TemporaryDirectory
_tempDir;
62
var
tmp = project.Dir();
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)