1 write to TestProject
Microsoft.NET.TestFramework (1)
TestAssetsManager.cs (1)
74testAsset.TestProject = testProject;
55 references to TestProject
dotnet-watch.Tests (4)
Build\EvaluationTests.cs (3)
546watchableApp.Start(testAsset, arguments, relativeProjectDirectory: testAsset.TestProject!.Name); 577=> Path.Combine(projectAsset.Path, projectAsset.TestProject!.Name!, projectAsset.TestProject!.Name + ".csproj");
Process\LaunchSettingsProfileTest.cs (1)
100=> Path.Combine(testAsset.Path, testAsset.TestProject.Name);
Microsoft.DotNet.ApiCompat.IntegrationTests (15)
CompatibleFrameworkInPackageValidatorIntegrationTests.cs (2)
68string assemblyName = $"{asset.TestProject.Name}.dll"; 108string assemblyName = $"{asset.TestProject.Name}.dll";
Task\ValidatePackageTargetIntegrationTests.cs (13)
179{ NuGetFramework.ParseFolder("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } }, 180{ NuGetFramework.ParseFolder(ToolsetInfo.CurrentTargetFramework), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework) } } 186Assert.Contains($"CP0008 Type 'PackageValidationTests.First' does not implement interface 'PackageValidationTests.IBaseInterface' on lib/{ToolsetInfo.CurrentTargetFramework}/{asset.TestProject.Name}.dll but it does on lib/netstandard2.0/{asset.TestProject.Name}.dll", log.errors); 211{ NuGetFramework.ParseFolder("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } }, 212{ NuGetFramework.ParseFolder(ToolsetInfo.CurrentTargetFramework), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework) } } 216File.Delete(Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework, $"{testDummyDependency.Name}.dll")); 252{ NuGetFramework.ParseFolder("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } }, 253{ NuGetFramework.ParseFolder(ToolsetInfo.CurrentTargetFramework), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework) } } 258File.Delete(Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework, $"{dependency.Name}.dll")); 281{ NuGetFramework.ParseFolder("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } } 305{ NuGetFramework.Parse("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } }, 306{ NuGetFramework.ParseComponents($".NETCoreApp,Version=v{ToolsetInfo.CurrentTargetFrameworkVersion}", "Windows,Version=7.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", $"net{ToolsetInfo.CurrentTargetFrameworkVersion}-windows") } }
Microsoft.DotNet.ApiSymbolExtensions.Tests (8)
AssemblySymbolLoaderTests.cs (8)
169IAssemblySymbol fromAssembly = SymbolFactory.GetAssemblyFromSyntax(SimpleAssemblySourceContents, assemblyName: assetInfo.TestAsset.TestProject.Name); 215IAssemblySymbol symbol = loader.LoadAssembly(Path.Combine(assetInfo.OutputDirectory, assetInfo.TestAsset.TestProject.Name + ".dll")); 268string assemblyPath = Path.Combine(assetInfo.OutputDirectory, assetInfo.TestAsset.TestProject.Name + ".dll"); 304loader.LoadAssembly(Path.Combine(assetInfo.OutputDirectory, assetInfo.TestAsset.TestProject.Name + ".dll")); 317TestProject testProject = assetInfo.TestAsset.TestProject; 344assembliesToExclude: [assetInfo.TestAsset.TestProject.Name + ".dll"]); 367assembliesToExclude: [assetInfo.TestAsset.TestProject.Name]); 375outputDirectory = buildCommand.GetOutputDirectory(testAsset.TestProject.TargetFrameworks).FullName;
Microsoft.NET.Build.Tests (20)
AppHostTests.cs (1)
18var testProjectName = testAsset.TestProject?.Name ?? testAsset.Name;
ArtifactsOutputPathTests.cs (1)
560var projectDir = Path.Combine(testAsset.Path, testAsset.TestProject.Name);
GivenThatWeWantToGenerateGlobalUsings_BlazorWasm.cs (2)
19var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 53var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs";
GivenThatWeWantToGenerateGlobalUsings_DotNet.cs (7)
19var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 49var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 70var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 115var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 161var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 191var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 231var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs";
GivenThatWeWantToGenerateGlobalUsings_WebApp.cs (2)
20var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 60var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs";
GivenThatWeWantToGenerateGlobalUsings_Worker.cs (2)
19var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 54var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g..cs";
GivenWeWantToRequireWindowsForDesktopApps.cs (3)
129var exePath = Path.Combine(testAsset.TestRoot, testAsset.TestProject.Name, 130"bin", "Debug", testAsset.TestProject.TargetFrameworks, "win-x64", "publish", 131$"{testAsset.TestProject.Name}.exe");
RoslynBuildTaskTests.cs (2)
138Run(buildCommand.GetOutputDirectory().File(testAsset.TestProject!.GetOutputFileName())); 148Run(buildCommand.GetOutputDirectory().File(testAsset.TestProject!.GetOutputFileName()));
Microsoft.NET.Publish.Tests (1)
GivenThatWeWantToRunILLink.cs (1)
2273testProject.ReferencedProjects.Add(referenceAsset.TestProject);
Microsoft.NET.TestFramework (7)
Commands\DotnetBuildCommand.cs (5)
22if (testAsset.TestProject != null && testAsset.TestProject.Name is not null) 24WorkingDirectory = Path.Combine(testAsset.TestRoot, testAsset.TestProject.Name); 34Debug.Assert(TestAsset?.TestProject?.Name != null); 35var projectPath = Path.Combine(TestAsset.Path, TestAsset.TestProject.Name);
Commands\MSBuildCommand.cs (1)
35: this(testAsset.Log, target, testAsset.TestRoot, relativePathToProject ?? testAsset.TestProject?.Name, requiredArgs)
OutputPathCalculator.cs (1)
21return FromProject(projectPath, testAsset.TestProject);