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