5 instantiations of TemporaryDirectory
Microsoft.DotNet.Open.Api.Tools.Tests (5)
OpenApiAddProjectTests.cs (2)
57using var refProj = new TemporaryDirectory(); 87using var refProj = new TemporaryDirectory();
OpenApiRemoveTests.cs (1)
109using var refProj = new TemporaryDirectory();
OpenApiTestBase.cs (1)
52_tempDir = new TemporaryDirectory();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
32var subdir = new TemporaryDirectory(Path.Combine(Root, name), this);
20 references to TemporaryDirectory
Microsoft.DotNet.Open.Api.Tools.Tests (20)
OpenApiAddProjectTests.cs (4)
23using var refProj1 = project.Project.Dir().SubDir("refProj1"); 24using var refProj2 = project.Project.Dir().SubDir("refProj2"); 57using var refProj = new TemporaryDirectory(); 87using var refProj = new TemporaryDirectory();
OpenApiRemoveTests.cs (1)
109using var refProj = new TemporaryDirectory();
OpenApiTestBase.cs (2)
16protected readonly TemporaryDirectory _tempDir; 62var tmp = project.Dir();
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (3)
17private readonly TemporaryDirectory _directory; 21public TemporaryCSharpProject(string name, TemporaryDirectory directory, string sdk) 123public TemporaryDirectory Dir() => _directory;
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (10)
15private readonly List<TemporaryDirectory> _subdirs = new List<TemporaryDirectory>(); 17private readonly TemporaryDirectory? _parent; 24private TemporaryDirectory(string path, TemporaryDirectory parent) 30public TemporaryDirectory SubDir(string name) 32var subdir = new TemporaryDirectory(Path.Combine(Root, name), this); 51public TemporaryDirectory WithFile(string name, string contents = "") 57public TemporaryDirectory WithContentFile(string name) 67public TemporaryDirectory Up() 80foreach (var dir in _subdirs)