31 references to Path
Microsoft.DotNet.Open.Api.Tools.Tests (31)
OpenApiAddFileTests.cs (7)
84
var csproj = new FileInfo(project.Project.
Path
);
117
var csproj = new FileInfo(project.Project.
Path
);
137
var csproj = new FileInfo(project.Project.
Path
);
157
var csproj = new FileInfo(project.Project.
Path
);
172
var run = app.Execute(new[] { "add", "file", "--updateProject", project.Project.
Path
, nswagJsonFIle });
177
var csproj = new FileInfo(project.Project.
Path
);
202
var csproj = new FileInfo(project.Project.
Path
);
OpenApiAddProjectTests.cs (9)
39
var run = app.Execute(new[] { "add", "project", project1.
Path
, project2.
Path
});
44
using var csprojStream = new FileInfo(project.Project.
Path
).OpenRead();
48
Assert.Contains($"<OpenApiProjectReference Include=\"{project1.
Path
}\"", content);
49
Assert.Contains($"<OpenApiProjectReference Include=\"{project2.
Path
}\"", content);
66
var run = app.Execute(new[] { "add", "project", csproj.
Path
});
71
run = app.Execute(new[] { "add", "project", Path.Combine(csproj.
Path
, "..", "refProj.csproj") });
76
projXml.Load(project.Project.
Path
);
102
using var csprojStream = new FileInfo(project.Project.
Path
).OpenRead();
OpenApiAddURLTests.cs (14)
27
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
60
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
93
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
126
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
158
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
190
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
216
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
250
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
282
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
314
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
347
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
372
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
407
var csproj = new FileInfo(project.Project.
Path
);
433
using (var csprojStream = new FileInfo(project.Project.
Path
).OpenRead())
src\Tools\Shared\TestHelpers\TemporaryCSharpProject.cs (1)
120
return WithItem(new ItemSpec { Name = "ProjectReference", Include = reference.
Path
, Watch = watch });