1 write to _tempDir
Microsoft.DotNet.Open.Api.Tools.Tests (1)
OpenApiTestBase.cs (1)
52
_tempDir
= new TemporaryDirectory();
34 references to _tempDir
Microsoft.DotNet.Open.Api.Tools.Tests (34)
OpenApiAddFileTests.cs (3)
30
_tempDir
.Create();
41
_tempDir
.Create();
45
Assert.Contains($"The project '{Path.Combine(
_tempDir
.Root, csproj)}' does not exist.", _error.ToString());
OpenApiAddURLTests.cs (12)
36
var jsonFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
69
var jsonFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
102
var jsonFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
135
var jsonFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
167
var jsonFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
199
var firstJsonFile = Path.Combine(
_tempDir
.Root, firstExpectedJsonName);
227
var secondJsonFile = Path.Combine(
_tempDir
.Root, secondExpectedJsonName);
259
var resultFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
291
var resultFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
323
var resultFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
356
var resultFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
441
var jsonFile = Path.Combine(
_tempDir
.Root, expectedJsonName);
OpenApiRefreshTests.cs (3)
25
var expectedJsonPath = Path.Combine(
_tempDir
.Root, "filename.json");
55
var expectedJsonPath = Path.Combine(
_tempDir
.Root, "filename.json");
83
var expectedJsonPath = Path.Combine(
_tempDir
.Root, "filename.json");
OpenApiRemoveTests.cs (13)
18
_tempDir
32
var csproj = new FileInfo(Path.Join(
_tempDir
.Root, "testproj.csproj"));
47
csproj = new FileInfo(Path.Join(
_tempDir
.Root, "testproj.csproj"));
56
Assert.False(File.Exists(Path.Combine(
_tempDir
.Root, nswagJsonFile)));
62
_tempDir
75
var csproj = new FileInfo(Path.Join(
_tempDir
.Root, "testproj.csproj"));
90
csproj = new FileInfo(Path.Join(
_tempDir
.Root, "testproj.csproj"));
102
_tempDir
124
using (var csprojStream = new FileInfo(Path.Join(
_tempDir
.Root, "testproj.csproj")).OpenRead())
138
using (var csprojStream = new FileInfo(Path.Join(
_tempDir
.Root, "testproj.csproj")).OpenRead())
152
_tempDir
177
var csproj = new FileInfo(Path.Join(
_tempDir
.Root, "testproj.csproj"));
186
Assert.False(File.Exists(Path.Combine(
_tempDir
.Root, nswagJsonFile)));
OpenApiTestBase.cs (3)
59
var project =
_tempDir
87
_tempDir
.Root, wrapper, _output, _error);
118
_tempDir
.Dispose();