775 references to CopyTestAsset
dotnet.Tests (382)
CommandFactoryTests\GivenAProjectDependencyCommandResolver.cs (4)
28_testAssetsManager.CopyTestAsset("TestAppWithProjDepTool") 63_testAssetsManager.CopyTestAsset("TestAppWithProjDepTool") 94_testAssetsManager.CopyTestAsset("TestAppWithProjDepTool") 123_testAssetsManager.CopyTestAsset("TestAppWithProjDepTool")
CommandFactoryTests\GivenAProjectToolsCommandResolver.cs (10)
85var testInstance = _testAssetsManager.CopyTestAsset(TestProjectName) 109var testInstance = _testAssetsManager.CopyTestAsset(TestProjectName) 139var testInstance = _testAssetsManager.CopyTestAsset(TestProjectName) 164var testInstance = _testAssetsManager.CopyTestAsset(TestProjectName) 191var testInstance = _testAssetsManager.CopyTestAsset(TestProjectName) 218var testInstance = _testAssetsManager.CopyTestAsset(TestProjectName) 264var testInstance = _testAssetsManager.CopyTestAsset(TestProjectName) 302var testInstance = _testAssetsManager.CopyTestAsset(TestProjectName) 328var testInstance = _testAssetsManager.CopyTestAsset("AppWithFallbackFolderToolDependency") 354var testInstance = _testAssetsManager.CopyTestAsset("AppWithFallbackFolderToolDependency")
CommandTests\Build\GivenDotnetBuildBuildsCsproj.cs (12)
20var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 46var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 61var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 72var testInstance = _testAssetsManager.CopyTestAsset( 88var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 102var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 119var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 155var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 173var testInstance = _testAssetsManager.CopyTestAsset("MSBuildTestApp") 192var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld") 232var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld", identifier: commandName) 249var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld")
CommandTests\Build\GivenDotnetBuildBuildsDcproj.cs (1)
16var testInstance = _testAssetsManager.CopyTestAsset(testAppName)
CommandTests\BuildServer\Shutdown\BuildServerShutdownCommandTests.cs (1)
168.CopyTestAsset("TestRazorApp")
CommandTests\Clean\GivenDotnetCleanCleansBuildArtifacts.cs (1)
16var testInstance = _testAssetsManager.CopyTestAsset(testAppName)
CommandTests\Hidden\Complete\CompleteCommandTests.cs (4)
340var testAsset = _testAssetsManager.CopyTestAsset("NugetCompletion").WithSource(); 361var testAsset = _testAssetsManager.CopyTestAsset("NugetCompletion").WithSource(); 383var testAsset = _testAssetsManager.CopyTestAsset("NugetCompletion").WithSource(); 409var testAsset = _testAssetsManager.CopyTestAsset("NugetCompletion").WithSource();
CommandTests\MSBuild\GivenDotnetMSBuildBuildsProjects.cs (2)
21var testInstance = _testAssetsManager.CopyTestAsset("MSBuildBareBonesProject") 81var testInstance = _testAssetsManager.CopyTestAsset("LibraryWithUnresolvablePackageReference", identifier: propertyFormat.GetHashCode().ToString())
CommandTests\MSBuild\GivenDotnetOsArchOptions.cs (2)
118var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld", identifier: command) 135var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld", identifier: command)
CommandTests\MSBuild\GivenDotnetRunInvocation.cs (1)
35var newWorkingDir = tam.CopyTestAsset("HelloWorld", identifier: $"{nameof(MsbuildInvocationIsCorrect)}_{args.GetHashCode()}_{expectedArgs.GetHashCode()}").WithSource().Path;
CommandTests\NuGet\GivenANuGetCommand.cs (2)
120.CopyTestAsset(testAssetName) 145.CopyTestAsset(testAssetName)
CommandTests\Pack\PackTests.cs (18)
19var testInstance = _testAssetsManager.CopyTestAsset("TestLibraryWithConfiguration") 41var testInstance = _testAssetsManager.CopyTestAsset("TestLibraryWithConfiguration") 61var testInstance = _testAssetsManager.CopyTestAsset("TestLibraryWithConfiguration") 88var testInstance = _testAssetsManager.CopyTestAsset("EndToEndTestApp") 111var testInstance = _testAssetsManager.CopyTestAsset("LibraryWithOutputAssemblyName") 147var testInstance = _testAssetsManager.CopyTestAsset(projectName) 159var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 171var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 189var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 202var testInstance = _testAssetsManager.CopyTestAsset("TestLibraryWithConfiguration") 266var testInstance = _testAssetsManager.CopyTestAsset("MSBuildTestApp") 284var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 298var testInstance = _testAssetsManager.CopyTestAsset("TestNuspecProject") 327var testInstance = _testAssetsManager.CopyTestAsset("TestNuspecProject") 341var testInstance = _testAssetsManager.CopyTestAsset("TestNuspecProject") 373var testInstance = _testAssetsManager.CopyTestAsset("TestNuspecWithConfigFiles") 400var testInstance = _testAssetsManager.CopyTestAsset("TestNuspecProject") 424var testInstance = _testAssetsManager.CopyTestAsset("TestNuspecProject")
CommandTests\Package\Add\GivenDotnetPackageAdd.cs (10)
20.CopyTestAsset(testAsset) 116.CopyTestAsset("TestAppSimple") 133.CopyTestAsset(testAsset) 155.CopyTestAsset(testAsset) 182.CopyTestAsset(testAsset) 203.CopyTestAsset(testAsset) 225.CopyTestAsset(testAsset) 244.CopyTestAsset("TestAppSimple") 259.CopyTestAsset("TestAppSimple") 275.CopyTestAsset(testAsset)
CommandTests\Package\List\GivenDotnetListPackage.cs (13)
21.CopyTestAsset(testAssetName) 45.CopyTestAsset(testAssetName) 77.CopyTestAsset(testAssetName) 110.CopyTestAsset(sln) 135.CopyTestAsset(testAsset) 152.CopyTestAsset(testAsset) 244.CopyTestAsset(testAssetName, identifier: args.GetHashCode().ToString() + shouldInclude) 283.CopyTestAsset(testAssetName) 304.CopyTestAsset(testAssetName) 369.CopyTestAsset(testAssetName, "C#") 390.CopyTestAsset(testAssetName) 413.CopyTestAsset(sln) 436.CopyTestAsset(sln)
CommandTests\Package\Remove\GivenDotnetPackageRemove.cs (4)
13.CopyTestAsset("TestAppSimple") 35.CopyTestAsset("TestAppSimple") 57.CopyTestAsset("TestAppSimple") 72.CopyTestAsset("TestAppSimple")
CommandTests\Package\Remove\GivenDotnetRemovePackage.cs (1)
70.CopyTestAsset("TestAppSimple")
CommandTests\Publish\GivenDotnetPublishPublishesProjects.cs (15)
24var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 51var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 65var testInstance = _testAssetsManager.CopyTestAsset( 82var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 100var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 200.CopyTestAsset("HelloWorld", identifier: "NET1193Failure") 273var testInstance = _testAssetsManager.CopyTestAsset(testAppName, identifier: args) 288var testInstance = _testAssetsManager.CopyTestAsset(testAppName, callingMethod: callingMethod, identifier: $"{rid ?? "none"}_{args ?? "none"}") 309var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 333var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 352var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple", identifier: selfContained.ToString()) 386var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 406var testInstance = _testAssetsManager.CopyTestAsset("MSBuildTestApp") 424var testInstance = _testAssetsManager.CopyTestAsset("TestAppSimple") 442.CopyTestAsset("HelloWorld", "PublishPropertiesHelloWorld")
CommandTests\Reference\Add\GivenDotnetAddReference.cs (1)
56_testAssetsManager.CopyTestAsset(TestSetup.ProjectName, callingMethod + nameof(GivenDotnetAddReference), identifier: identifier + callingMethod, testAssetSubdirectory: TestSetup.TestGroup)
CommandTests\Reference\List\GivenDotnetListReference.cs (1)
234_testAssetsManager.CopyTestAsset(TestSetup.ProjectName, callingMethod: callingMethod, identifier: identifier, testAssetSubdirectory: TestSetup.TestGroup)
CommandTests\Reference\Remove\GivenDotnetRemoveP2P.cs (1)
56_testAssetsManager.CopyTestAsset(TestSetup.ProjectName, callingMethod: callingMethod + nameof(GivenDotnetRemoveReference), identifier: identifier + callingMethod, testAssetSubdirectory: TestAssetSubdirectories.NonRestoredTestProjects)
CommandTests\Restore\GivenThatIWantToRestoreApp.cs (2)
28.CopyTestAsset(sln, identifier: useStaticGraphEvaluation.ToString()) 103var rootPath = _testAssetsManager.CopyTestAsset("VSTestCore", identifier: useStaticGraphEvaluation.ToString())
CommandTests\Run\GivenDotnetRootEnv.cs (1)
71.CopyTestAsset("TestAppEchoDotnetRoot", callingMethod, allowCopyIfPresent: true)
CommandTests\Run\GivenDotnetRunBuildsCsProj.cs (53)
22var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 42var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 57var testInstance = _testAssetsManager.CopyTestAsset( 75var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 93var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 109var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 125var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 140var testInstance = _testAssetsManager.CopyTestAsset("MSBuildTestApp") 158var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 175var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 192var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 251var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 267var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 284var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 301var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 318var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 335var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 352var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 369var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 391var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 410var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 431var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 451var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 471var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 491var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 510var testInstance = _testAssetsManager.CopyTestAsset("AppWithLaunchSettings") 531var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 550var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 569var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 586var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 603var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 622var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 641var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 659var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 677var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 698var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 719var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 735var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 752var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 766var testInstance = _testAssetsManager.CopyTestAsset("AppOutputsExecutablePath").WithSource(); 782var testInstance = _testAssetsManager.CopyTestAsset("AppOutputsExecutablePath").WithSource(); 796var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 813var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 830var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 847var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 863var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 882var testInstance = _testAssetsManager.CopyTestAsset("TestAppWithLaunchSettings") 901var testInstance = _testAssetsManager.CopyTestAsset("TestAppWithLaunchSettings") 923var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 940var testInstance = _testAssetsManager.CopyTestAsset("TestAppWithLaunchSettings") 957var testInstance = _testAssetsManager.CopyTestAsset("TestAppWithLaunchSettings") 972var testInstance = _testAssetsManager.CopyTestAsset("TestAppWithLaunchSettings") 994var testInstance = _testAssetsManager.CopyTestAsset("TestAppWithLaunchSettings")
CommandTests\Run\GivenDotnetRunBuildsVbProj.cs (7)
19var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 41var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 60var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 80var testInstance = _testAssetsManager.CopyTestAsset(testAppName, identifier: $"LaunchProfileSuccess-{launchProfileName}") 98var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 118var testInstance = _testAssetsManager.CopyTestAsset("VbAppWithLaunchSettings") 139var testInstance = _testAssetsManager.CopyTestAsset(testAppName)
CommandTests\Run\GivenDotnetRunIsInterrupted.cs (3)
25var asset = _testAssetsManager.CopyTestAsset("TestAppThatWaits") 86var asset = _testAssetsManager.CopyTestAsset("TestAppThatWaits") 147var asset = _testAssetsManager.CopyTestAsset("TestAppThatWaits")
CommandTests\Run\GivenDotnetRunUsesTargetExtension.cs (2)
22var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 48var testInstance = _testAssetsManager.CopyTestAsset(testAppName)
CommandTests\Run\GivenThatWeCanPassNonProjectFilesToDotnetRun.cs (1)
18.CopyTestAsset("SlnFileWithNoProjectReferences")
CommandTests\Run\RunFileTests.cs (1)
824var testInstance = _testAssetsManager.CopyTestAsset("MSBuildTestApp").WithSource();
CommandTests\Run\RunParserTests.cs (1)
21var testAsset = tam.CopyTestAsset("HelloWorld").WithSource();
CommandTests\Solution\Add\GivenDotnetSlnAdd.cs (40)
117.CopyTestAsset("InvalidSolution", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 139.CopyTestAsset("InvalidSolution", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 165.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 183.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"GivenDotnetSlnAdd-{solutionCommand}") 202.CopyTestAsset("TestAppWithMultipleSlnFiles", identifier: $"GivenDotnetSlnAdd-{solutionCommand}") 224.CopyTestAsset("TestAppWithSlnAndCsprojInSubDir", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 260.CopyTestAsset("TestAppWithSlnAndCsprojInSubDirVS", identifier: $"GivenDotnetSlnAdd{solutionCommand}{fooFirst}{solutionExtension}") 303.CopyTestAsset("TestAppWithSlnAndCsprojInSubDirVSErrors", identifier: $"GivenDotnetSlnAdd-{solutionCommand}") 336.CopyTestAsset(testAsset, identifier: $"GivenDotnetSlnAdd-{solutionCommand}{testAsset}{solutionExtension}") 362.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 391.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 420.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 448.CopyTestAsset("TestAppWithSlnAndCsprojFiles", $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 475.CopyTestAsset("TestAppWithSlnAndSolutionFolders", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{firstComponent}{solutionExtension}") 518.CopyTestAsset(testAsset, $"GivenDotnetSlnAdd-{solutionCommand}{testAsset}") 553.CopyTestAsset(testAsset, identifier: $"GivenDotnetSlnAdd-{solutionCommand}{testAsset}{solutionExtension}") 573.CopyTestAsset("TestAppWithEmptySln", $"GivenDotnetSlnAdd-{solutionCommand}") 621.CopyTestAsset(testAsset, $"GivenDotnetSlnAdd-{solutionCommand}{testAsset}{solutionExtension}") 656.CopyTestAsset(testAsset, identifier: $"GivenDotnetSlnAdd-{solutionCommand}{testAsset}{solutionExtension}") 700.CopyTestAsset(testAsset, identifier: $"GivenDotnetSlnAdd-{solutionCommand}{testAsset}{solutionExtension}") 721.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 745.CopyTestAsset("SlnFileWithNoProjectReferencesAndUnknownProject", identifier: $"GivenDotnetSlnAdd-{solutionCommand}") 783.CopyTestAsset(testAsset, identifier: $"GivenDotnetSlnAdd-{solutionCommand}{testAsset}") 810.CopyTestAsset("SlnFileWithNoProjectReferencesAndUnknownProjectType", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 841.CopyTestAsset("TestAppWithSlnAndDefaultProjectType", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 861.CopyTestAsset("TestAppWithSlnAndCaseSensitiveSolutionFolders", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 884.CopyTestAsset("TestAppWithSlnAndProjectConfigs", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 909.CopyTestAsset("TestAppWithSlnAndProjectConfigs", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 934.CopyTestAsset("TestAppWithSlnAndProjectConfigs", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 959.CopyTestAsset("TestAppsWithSlnAndMultitargetedProjects", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 982.CopyTestAsset("TestAppsWithSlnAndMultitargetedProjects", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 1005.CopyTestAsset("TestAppsWithSlnAndMultitargetedProjects", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 1029.CopyTestAsset("TestAppWithSlnAndCsprojInSubDir", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 1056.CopyTestAsset("TestAppWithSlnAndCsprojInSubDir", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 1084.CopyTestAsset("TestAppWithSlnAndCsprojInSubDir", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 1116.CopyTestAsset("TestAppWithSlnAndCsprojInSubDir", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{testIdentifier}{solutionExtension}") 1144.CopyTestAsset("TestAppWithSlnAndCsprojInParentDir", identifier: $"GivenDotnetSlnAdd-{solutionCommand}{solutionExtension}") 1171.CopyTestAsset("SlnFileWithReferencedProjects", identifier: $"GivenDotnetSlnAdd-{solutionCommand}") 1281.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"{solutionCommand}{arguments}{solutionExtension}") 1311.CopyTestAsset("SolutionFilesTemplates", identifier: "SolutionFilesTemplates")
CommandTests\Solution\List\GivenDotnetSlnList.cs (10)
93.CopyTestAsset("InvalidSolution", identifier: $"GivenDotnetSlnList-InvalidSolutionPassed-{solutionCommand}") 114.CopyTestAsset("InvalidSolution", identifier: $"GivenDotnetSlnList-InvalidSolutionFound-{solutionCommand}{solutionExtension}") 138.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"GivenDotnetSlnList-{solutionCommand}") 157.CopyTestAsset("TestAppWithMultipleSlnFiles", identifier: $"GivenDotnetSlnList-{solutionCommand}") 177.CopyTestAsset("TestAppWithEmptySln", identifier: $"GivenDotnetSlnList-{solutionCommand}{solutionExtension}") 201.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"GivenDotnetSlnList-{solutionCommand}{solutionExtension}") 225.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"GivenDotnetSlnList-Readonly-{solutionCommand}{solutionExtension}") 252.CopyTestAsset("SlnFileWithSolutionItemsInNestedFolders", identifier: $"GivenDotnetSlnList-{solutionCommand}") 272.CopyTestAsset("TestAppWithSlnxAndSolutionFilters", identifier: "GivenDotnetSlnList-Filter") 292.CopyTestAsset("TestAppWithSlnAndSlnfWithSpecialCharactersInPath", identifier: "GivenDotnetSlnList-Filter-Unescape")
CommandTests\Solution\Migrate\GivenDotnetSlnMigrate.cs (1)
16.CopyTestAsset("TestAppWithEmptySln")
CommandTests\Solution\Remove\GivenDotnetSlnRemove.cs (23)
98.CopyTestAsset("InvalidSolution", identifier: $"{solutionCommand}GivenDotnetSlnRemove") 119.CopyTestAsset("InvalidSolution", identifier: $"{solutionCommand}") 145.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"{solutionCommand}GivenDotnetSlnRemove") 163.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"{solutionCommand}") 182.CopyTestAsset("TestAppWithMultipleSlnFiles", identifier: $"{solutionCommand}GivenDotnetSlnRemove") 203.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"{solutionCommand}") 226.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"{solutionCommand}") 257.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"{solutionCommand}") 288.CopyTestAsset("SlnFileWithSolutionItemsInNestedFolders", identifier: $"{solutionCommand}{solutionExtension}") 313.CopyTestAsset("TestAppWithSlnAndDuplicateProjectReferences", identifier: $"{solutionCommand}") 345.CopyTestAsset("TestAppWithSlnAndExistingCsprojReferences", identifier: $"{solutionCommand}") 381.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}") 411.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}") 440.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}") 464.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}") 488.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}{solutionExtension}") 532.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}") 575.CopyTestAsset("TestAppWithSlnAndCsprojToRemove", identifier: $"{solutionCommand}") 605.CopyTestAsset("TestAppWithSlnAndCsprojInSubDirToRemove", identifier: $"{solutionCommand}") 630.CopyTestAsset("TestAppWithSlnAndLastCsprojInSubDirToRemove", identifier: $"{solutionCommand}") 655.CopyTestAsset("TestAppWithSlnProjectDependencyToRemove", identifier: $"{solutionCommand}") 680.CopyTestAsset("TestAppWithSlnAndCsprojFiles", identifier: $"{solutionCommand}{solutionExtension}") 700.CopyTestAsset("SolutionFilesTemplates", identifier: "SolutionFilesTemplates")
CommandTests\Store\GivenDotnetStoresAndPublishesProjects.cs (7)
22var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 29var profileProjectPath = _testAssetsManager.CopyTestAsset(profileProjectName).WithSource().Path; 73var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 77var profileProjectPath = _testAssetsManager.CopyTestAsset(profileProjectName).WithSource().Path; 110var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 118var profileProjectPath = _testAssetsManager.CopyTestAsset(profileProjectName).WithSource().Path; 122var profileProjectPath1 = _testAssetsManager.CopyTestAsset(profileProjectName1).WithSource().Path;
CommandTests\Test\GivenDotnetTestBuildsAndDiscoversTests.cs (7)
22TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectSolution", Guid.NewGuid().ToString()) 45TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultipleTestProjectSolution", Guid.NewGuid().ToString()) 68TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithDiscoveredTests", Guid.NewGuid().ToString()) 89TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithDiscoveredTests", Guid.NewGuid().ToString()) 113TestAsset testInstance = _testAssetsManager.CopyTestAsset("MSTestMetaPackageProjectWithMultipleTFMsSolution", Guid.NewGuid().ToString()) 135TestAsset testInstance = _testAssetsManager.CopyTestAsset("HybridTestRunnerTestProjects", Guid.NewGuid().ToString()) 155TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestAppPrintingCommandLineArguments", Guid.NewGuid().ToString())
CommandTests\Test\GivenDotnetTestBuildsAndRunsArtifactPostProcessing.cs (5)
29TestAsset testInstance = _testAssetsManager.CopyTestAsset("VSTestMultiProjectSolution", Guid.NewGuid().ToString()) 53TestAsset testInstance = _testAssetsManager.CopyTestAsset("VSTestMultiProjectSolution", Guid.NewGuid().ToString()) 82TestAsset testInstance = _testAssetsManager.CopyTestAsset("VSTestMultiProjectSolution", Guid.NewGuid().ToString()) 160TestAsset testInstance = _testAssetsManager.CopyTestAsset("VSTestDataCollectorSample").WithSource(); 175TestAsset testInstance = _testAssetsManager.CopyTestAsset("VSTestDataCollectorSampleNoMerge").WithSource();
CommandTests\Test\GivenDotnetTestBuildsAndRunsHelp.cs (3)
22TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectSolutionWithTestsAndArtifacts", Guid.NewGuid().ToString()).WithSource(); 44TestAsset testInstance = _testAssetsManager.CopyTestAsset("ProjectSolutionForMultipleTFMs", Guid.NewGuid().ToString()) 71TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectSolutionWithTestsAndArtifacts", Guid.NewGuid().ToString()).WithSource();
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestBasedOnGlobbingFilter.cs (3)
19TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()) 55TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()) 101TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString())
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsproj.cs (12)
45var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 73var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 90var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 107var testInstance = _testAssetsManager.CopyTestAsset(testAppName, identifier: "4") 140var testInstance = _testAssetsManager.CopyTestAsset("XunitCore") 290var rootPath = _testAssetsManager.CopyTestAsset("VSTestCore", identifier: "8") 379var testInstance = _testAssetsManager.CopyTestAsset("XunitCore") 616var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 641var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 663var testInstance = _testAssetsManager.CopyTestAsset(testAppName) 692var testInstance = _testAssetsManager.CopyTestAsset(testAppName, folderSuffix) 812var testInstance = _testAssetsManager.CopyTestAsset(testAppName, callingMethod: callingMethod, identifier: string.Join(",", parameters.Select(p => p.ToString())))
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs (4)
22var testProjectDirectory = _testAssetsManager.CopyTestAsset("VSTestMulti", identifier: "1") 60var testInstance = _testAssetsManager.CopyTestAsset(testAppName, identifier: "2") 101var testInstance = _testAssetsManager.CopyTestAsset(testAppName, identifier: "3") 129var testInstance = _testAssetsManager.CopyTestAsset(
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsprojWithCorrectTestRunParameters.cs (1)
83var testInstance = _testAssetsManager.CopyTestAsset(testAppName, callingMethod: callingMethod)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromDll.cs (4)
20var testAsset = _testAssetsManager.CopyTestAsset(testAppName) 56var testAsset = _testAssetsManager.CopyTestAsset(testAppName) 86var testAsset = _testAssetsManager.CopyTestAsset(testAppName) 117var testAsset = _testAssetsManager.CopyTestAsset(testAppName)
CommandTests\Test\GivenDotnetTestBuildsAndRunsTests.cs (20)
22TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectSolution", Guid.NewGuid().ToString()) 47TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestAppSimpleWithRetry", Guid.NewGuid().ToString()) 74TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultipleTestProjectSolution", Guid.NewGuid().ToString()) 100TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()) 125TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithLaunchSettings", Guid.NewGuid().ToString()) 158TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithLaunchSettings", Guid.NewGuid().ToString()) 177TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithLaunchSettings", Guid.NewGuid().ToString()) 197TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()) 222TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithDifferentFailures", Guid.NewGuid().ToString()) 252TestAsset testInstance = _testAssetsManager.CopyTestAsset("HybridTestRunnerTestProjects", Guid.NewGuid().ToString()) 272TestAsset testInstance = _testAssetsManager.CopyTestAsset("ClassLibraryWithIsTestProjectAndOtherTestProjects", Guid.NewGuid().ToString()) 292TestAsset testInstance = _testAssetsManager.CopyTestAsset("EmptyFolder", Guid.NewGuid().ToString()) 312TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultipleTestProjectsWithoutSolution", Guid.NewGuid().ToString()) 332TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectFileAndSolutionFile", Guid.NewGuid().ToString()) 354TestAsset testInstance = _testAssetsManager.CopyTestAsset(assetName, Guid.NewGuid().ToString()) 385TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithConditionOnGlobalProperty", Guid.NewGuid().ToString()) 411TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectMTPWithUseAppHostFalse", Guid.NewGuid().ToString()) 432TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectSolutionTestingMinimumExpectedTests", Guid.NewGuid().ToString()) 446TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectMTPCrash", Guid.NewGuid().ToString()) 485TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectShowingEnvVariable", Guid.NewGuid().ToString())
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsForMultipleTFMs.cs (5)
24TestAsset testInstance = _testAssetsManager.CopyTestAsset("ProjectSolutionForMultipleTFMs", Guid.NewGuid().ToString()) 64TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithMultipleTFMsSolution", Guid.NewGuid().ToString()) 112TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithMultipleTFMsParallelization", Guid.NewGuid().ToString()) 151TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithMultipleTFMsSolution", Guid.NewGuid().ToString()) 180TestAsset testInstance = _testAssetsManager.CopyTestAsset("MSTestMetaPackageProjectWithMultipleTFMsSolution", Guid.NewGuid().ToString())
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsWithArtifacts.cs (2)
22TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectSolutionWithTestsAndArtifacts", Guid.NewGuid().ToString()).WithSource(); 53TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectSolutionWithCodeCoverage", Guid.NewGuid().ToString()).WithSource();
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsWithDifferentOptions.cs (25)
23TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 42TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 62TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 82TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 99TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 118TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 139TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 158TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 179TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 199TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 219TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 239TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectSolution", Guid.NewGuid().ToString()).WithSource(); 266TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 285TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 304TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 323TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 344TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 371TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 387TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 413TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 438TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource(); 465TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithMultipleTFMsSolution", Guid.NewGuid().ToString()).WithSource(); 501TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithMultipleTFMsSolution", Guid.NewGuid().ToString()).WithSource(); 539TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource(); 557TestAsset testInstance = _testAssetsManager.CopyTestAsset("MultiTestProjectSolutionWithTests", Guid.NewGuid().ToString()).WithSource();
CommandTests\Test\GivenDotnetTestContainsEnvironmentVariables.cs (2)
32var testAsset = _testAssetsManager.CopyTestAsset(TestAppName) 61var testAsset = _testAssetsManager.CopyTestAsset(TestAppName)
CommandTests\Test\GivenDotnetTestContainsMSBuildParameters.cs (1)
25var testAsset = _testAssetsManager.CopyTestAsset(TestAppName)
CommandTests\Test\GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs (1)
21var testAsset = _testAssetsManager.CopyTestAsset(TestAppName)
CommandTests\Test\GivenDotnetTestRunsConsoleAppWithoutHandshake.cs (1)
23TestAsset testInstance = _testAssetsManager.CopyTestAsset("ConsoleAppDoesNothing", Guid.NewGuid().ToString())
CommandTests\Test\GivenDotnetTestsRunsInDifferentCultures.cs (1)
21var testAsset = _testAssetsManager.CopyTestAsset(TestAppName)
CommandTests\Test\GivenDotnetTestsRunsWithDifferentCultures.cs (1)
20TestAsset testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithTests", Guid.NewGuid().ToString()).WithSource();
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
117.CopyTestAsset("NuGetConfigRandomPackageSources", allowCopyIfPresent: true)
CommandTests\VSTest\VSTestTests.cs (3)
20var testAsset = _testAssetsManager.CopyTestAsset(testAppName, identifier: "VSTestTests") 95var testAsset = _testAssetsManager.CopyTestAsset(testAppName) 200var testInstance = _testAssetsManager.CopyTestAsset(testAppName, callingMethod: callingMethod)
CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs (2)
581var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld", identifier: commandName) 619var testInstance = _testAssetsManager.CopyTestAsset("HelloWorld")
CommandTests\Workload\Restore\DiscoverAllProjectsTests.cs (4)
18.CopyTestAsset("TestAppWithSlnAndCsprojFiles") 30.CopyTestAsset("TestAppWithSlnAndCsprojFiles") 51.CopyTestAsset("TestAppWithSlnAndCsprojFiles") 66.CopyTestAsset("TestAppWithSlnAndSolutionFolders")
CommandTests\Workload\Restore\GivenDotnetWorkloadRestore.cs (2)
26.CopyTestAsset(DcProjAssetName) 49.CopyTestAsset(TransitiveReferenceNoWorkloadsAssetName)
GivenThatDotNetRunsCommands.cs (1)
20var testInstance = _testAssetsManager.CopyTestAsset("TestProjectWithUnresolvedPlatformDependency", testAssetSubdirectory: "NonRestoredTestProjects")
GivenThatICareAboutVBApps.cs (3)
16var testInstance = _testAssetsManager.CopyTestAsset("VBTestApp") 27var testInstance = _testAssetsManager.CopyTestAsset("VBTestApp") 39var testInstance = _testAssetsManager.CopyTestAsset("VBTestApp")
GivenThatWeWantToBeBackwardsCompatibleWith1xProjects.cs (3)
18var testInstance = _testAssetsManager.CopyTestAsset(testAppName, identifier: target.Replace('.', '_')) 47var testInstance = _testAssetsManager.CopyTestAsset(testAppName, identifier: target.Replace('.', '_')) 66.CopyTestAsset("11TestAppWith10CLIToolReferences")
PackagedCommandTests.cs (8)
25var testInstance = _testAssetsManager.CopyTestAsset(appName) 47var testInstance = _testAssetsManager.CopyTestAsset("AppWithToolDependency", identifier: toolPrefersCLIRuntime ? "preferCLIRuntime" : "") 82var testInstance = _testAssetsManager.CopyTestAsset("AppWithToolDependency") 138var testInstance = _testAssetsManager.CopyTestAsset("AppWithDepOnToolWithOutputName") 158var testInstance = _testAssetsManager.CopyTestAsset("AppWithNonExistingToolDependency", testAssetSubdirectory: "NonRestoredTestProjects") 175var testInstance = _testAssetsManager.CopyTestAsset("ToolWithRandomPackageName", testAssetSubdirectory: "NonRestoredTestProjects") 217var testInstance = _testAssetsManager.CopyTestAsset("DependencyContextFromTool") 233var testInstance = _testAssetsManager.CopyTestAsset("AppWithDirectDep")
ShellShimTests\ShellShimRepositoryTests.cs (1)
500var testInstance = _testAssetsManager.CopyTestAsset(testAppName, callingMethod: callingMethod, identifier: identifier)
dotnet-format.UnitTests (8)
MSBuild\MSBuildWorkspaceFinderTests.cs (8)
22.CopyTestAsset(testProjectName: "for_workspace_finder/no_project_or_solution", testAssetSubdirectory: "dotnet-format") 35.CopyTestAsset(testProjectName: "for_workspace_finder/multiple_projects", testAssetSubdirectory: "dotnet-format") 48.CopyTestAsset(testProjectName: "for_workspace_finder/multiple_solutions", testAssetSubdirectory: "dotnet-format") 61.CopyTestAsset(testProjectName: "for_workspace_finder/project_and_solution", testAssetSubdirectory: "dotnet-format") 74.CopyTestAsset(testProjectName: "for_workspace_finder/single_solution", testAssetSubdirectory: "dotnet-format") 88.CopyTestAsset(testProjectName: "for_workspace_finder/multiple_solutions", testAssetSubdirectory: "dotnet-format") 126.CopyTestAsset(testProjectName: "for_workspace_finder/single_project", testAssetSubdirectory: "dotnet-format") 140.CopyTestAsset(testProjectName: "for_workspace_finder/multiple_projects", testAssetSubdirectory: "dotnet-format")
dotnet-new.IntegrationTests (39)
BaseIntegrationTest.cs (1)
143var testAsset = _testAssetsManager.CopyTestAsset("dotnet-new", callingMethod: testName, testAssetSubdirectory: "TestPackages").WithSource();
PostActionTests.Approval.cs (9)
13string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RestoreNuGet/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 44string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RunScript/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 67string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddPackageReference/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 98string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectReference/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 129string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectToSolution/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 169string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/Instructions/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 191string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RestoreNuGet/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 215string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/UnknownPostAction", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 235string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RunScript/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path;
PostActionTests.cs (29)
30string templateLocation = _testAssetsManager.CopyTestAsset(templatePartLocation, testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 63string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RestoreNuGet/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 99string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RestoreNuGet/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 137string templateLocation = _testAssetsManager.CopyTestAsset(templatePartLocation, testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 172string templateLocation = _testAssetsManager.CopyTestAsset(templatePartLocation, testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 214string templateLocation = _testAssetsManager.CopyTestAsset(templatePartLocation, testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 263string templateLocation = _testAssetsManager.CopyTestAsset(templatePartLocation, testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 312string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RunScript/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 345string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RunScript/DoNotRedirect", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 370string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RunScript/Redirect", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 395string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/RunScript/RedirectOnError", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 430string templateLocation = _testAssetsManager.CopyTestAsset(templatePartLocation, testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 459string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddPackageReference/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 491string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddPackageReference/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 522string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectReference/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 558string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectReference/Existing", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 603var templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectReference/ExistingWithRename", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 650string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectReference/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 681string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectReference/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 713string templateLocation = _testAssetsManager.CopyTestAsset(templatePartLocation, testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 752string templateLocation = _testAssetsManager.CopyTestAsset(templatePartLocation, testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 784string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectToSolution/BasicInSolutionRoot", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 820string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectToSolution/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 856string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectToSolution/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 892string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/AddProjectToSolution/BasicWithIndexes", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 931string templateLocation = _testAssetsManager.CopyTestAsset("PostActions/Instructions/Basic", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 957string templateLocation = _testAssetsManager.CopyTestAsset("AddProjectReference", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 978string templateLocation = _testAssetsManager.CopyTestAsset("AddPackageReference", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path; 997string templateLocation = _testAssetsManager.CopyTestAsset("AddProjectToSolution", testAssetSubdirectory: DotnetNewTestTemplatesBasePath).WithSource().Path;
dotnet-watch.Tests (67)
Browser\BrowserLaunchTests.cs (2)
18var testAsset = TestAssets.CopyTestAsset(AppName) 36var testAsset = TestAssets.CopyTestAsset(AppName)
Build\EvaluationTests.cs (1)
424var testDirectory = _testAssets.CopyTestAsset("ProjectReferences_Graph")
CommandLine\LaunchSettingsTests.cs (8)
24var testAsset = TestAssets.CopyTestAsset(AppName) 37var testAsset = TestAssets.CopyTestAsset(AppName, identifier: hotReload.ToString()) 55var testAsset = TestAssets.CopyTestAsset(AppName, identifier: hotReload.ToString()) 75var testAsset = TestAssets.CopyTestAsset(AppName, identifier: hotReload.ToString()) 90var testAsset = TestAssets.CopyTestAsset(AppName) 116var testAsset = TestAssets.CopyTestAsset("WatchAppWithLaunchSettings") 127var testAsset = TestAssets.CopyTestAsset("WatchAppWithLaunchSettings") 144var testAsset = TestAssets.CopyTestAsset("WatchAppWithLaunchSettings")
CommandLine\ProgramTests.cs (16)
13var testAsset = TestAssets.CopyTestAsset("WatchKitchenSink") 60var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp", identifier: string.Join(",", arguments)) 78var testAsset = TestAssets.CopyTestAsset("WatchHotReloadAppCustomHost", identifier: string.Join(",", arguments)) 90var testAsset = TestAssets.CopyTestAsset("WatchHotReloadAppMultiTfm") 125var testAsset = TestAssets.CopyTestAsset("WatchHotReloadAppMultiTfm") 158var testAsset = TestAssets.CopyTestAsset("WatchAppWithLaunchSettings", identifier: profileName) 180var testAsset = TestAssets.CopyTestAsset("WatchAppWithLaunchSettings", identifier: profileName) 198var testAsset = TestAssets.CopyTestAsset("XunitCore") 223var testAsset = TestAssets.CopyTestAsset("XunitMulti") 235var testAsset = TestAssets.CopyTestAsset("WatchNoDepsApp") 252var testAsset = TestAssets.CopyTestAsset("WatchNoDepsApp") 269var testAsset = TestAssets.CopyTestAsset("WatchNoDepsApp") 288var testAsset = TestAssets.CopyTestAsset("WatchNoDepsApp") 306var testAsset = TestAssets.CopyTestAsset("WatchNoDepsApp") 324.CopyTestAsset("WatchAppWithProjectDeps") 349var testAsset = TestAssets.CopyTestAsset("WatchGlobbingApp")
HotReload\ApplyDeltaTests.cs (31)
17var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps") 52var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps") 77var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps") 116var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps", identifier: isDirectoryProps.ToString()) 157var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps") 200var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps") 239var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 271var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 313var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 350var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 404var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 446var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 488var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 535var testAsset = TestAssets.CopyTestAsset("WatchNoDepsApp") 558var testAsset = TestAssets.CopyTestAsset("FSharpTestAppSimple") 573var testAsset = TestAssets.CopyTestAsset("FSharpTestAppSimple") 613var testAsset = TestAssets.CopyTestAsset("WatchAppTypeLoadFailure") 643var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 676var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp", identifier: verbose.ToString()) 724var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp") 756var testAsset = TestAssets.CopyTestAsset("WatchBlazorWasm", identifier: projectSpecifiesCapabilities.ToString()) 816.CopyTestAsset("WatchBlazorWasm") 837var testAsset = TestAssets.CopyTestAsset("WatchBlazorWasm") 860var testAsset = TestAssets.CopyTestAsset("WatchBlazorWasmHosted") 884var testAsset = TestAssets.CopyTestAsset("WatchRazorWithDeps") 932var testAsset = TestAssets.CopyTestAsset("WatchMauiBlazor") 974var testAsset = TestAssets.CopyTestAsset("WatchAppMissingAssemblyFailure") 1014var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps") 1066var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps") 1121var testAsset = TestAssets.CopyTestAsset("WatchAspire") 1217var testAsset = TestAssets.CopyTestAsset("WatchAspire")
HotReload\CompilationHandlerTests.cs (1)
11var testAsset = TestAssets.CopyTestAsset("WatchAppMultiProc")
HotReload\RuntimeProcessLauncherTests.cs (3)
56=> TestAssets.CopyTestAsset(assetName, identifier: string.Join(";", testParameters)).WithSource(); 697var testAsset = TestAssets.CopyTestAsset("WatchAppWithProjectDeps") 766var testAsset = TestAssets.CopyTestAsset("WatchHotReloadApp")
Watch\GlobbingAppTests.cs (3)
10var testAsset = TestAssets.CopyTestAsset("WatchGlobbingApp") 73var testAsset = TestAssets.CopyTestAsset("WatchGlobbingApp") 94var testAsset = TestAssets.CopyTestAsset("WatchGlobbingApp")
Watch\NoDepsAppTests.cs (2)
13var testAsset = TestAssets.CopyTestAsset(AppName) 31var testAsset = TestAssets.CopyTestAsset(AppName)
EndToEnd.Tests (5)
GivenDotNetUsesMSBuild.cs (2)
48var testInstance = _testAssetsManager.CopyTestAsset("MSBuildTestApp") 82var testInstance = _testAssetsManager.CopyTestAsset("MSBuildTestApp")
GivenNetFrameworkSupportsNetStandard2.cs (1)
12.CopyTestAsset("NETFrameworkReferenceNETStandard20", testAssetSubdirectory: TestAssetSubdirectories.DesktopTestProjects)
GivenWindowsApp.cs (1)
25.CopyTestAsset("UseCswinrt", identifier: targetPlatformVersion)
Utilities\TestProjectCreator.cs (1)
32.CopyTestAsset("TestAppSimple", callingMethod: TestName, identifier: Identifier + PackageName + "_" + MinorVersion)
Microsoft.DotNet.ApiCompat.IntegrationTests (8)
Task\ValidatePackageTargetIntegrationTests.cs (8)
41.CopyTestAsset("PackageValidationTestProject", allowCopyIfPresent: true) 56.CopyTestAsset("PackageValidationTestProject", allowCopyIfPresent: true) 70.CopyTestAsset("PackageValidationTestProject", allowCopyIfPresent: true) 90.CopyTestAsset("PackageValidationTestProject", allowCopyIfPresent: true) 109.CopyTestAsset("PackageValidationTestProject", allowCopyIfPresent: true) 130.CopyTestAsset("PackageValidationTestProject", allowCopyIfPresent: true) 320.CopyTestAsset("PackageValidationTestProject", allowCopyIfPresent: true) 341.CopyTestAsset("PackageValidationTestProject", allowCopyIfPresent: true)
Microsoft.DotNet.Cli.Utils.Tests (2)
GivenAppThrowingException.cs (2)
15var root = _testAssetsManager.CopyTestAsset("AppThrowingException", testAssetSubdirectory: TestAssetSubdirectories.NonRestoredTestProjects) 35var root = _testAssetsManager.CopyTestAsset("AppThrowingException", testAssetSubdirectory: TestAssetSubdirectories.NonRestoredTestProjects)
Microsoft.NET.Build.Tests (168)
AppHostTests.cs (6)
48.CopyTestAsset("HelloWorld", identifier: targetFramework) 92.CopyTestAsset("HelloWorld", identifier: targetFramework, allowCopyIfPresent: true) 139.CopyTestAsset(testAssetName, identifier: targetFramework) 176.CopyTestAsset("HelloWorld", identifier: targetFramework) 207.CopyTestAsset("HelloWorld", identifier: target) 353.CopyTestAsset("HelloWorldFS")
ArtifactsOutputPathTests.cs (1)
503var testAsset = _testAssetsManager.CopyTestAsset("ArtifactsSdkTest")
DesignTimeBuildTests.cs (1)
31.CopyTestAsset("AppWithLibrary", identifier: relativeProjectPath + "_" + targetFramework ?? string.Empty)
EvaluatorFastPathTests.cs (1)
17.CopyTestAsset("MSBuildBareBonesProject")
GivenThatAProjectHasntBeenRestored.cs (1)
22.CopyTestAsset("AppWithLibrary", identifier: relativeProjectPath + "_" + targetFramework ?? string.Empty)
GivenThatWeWantAllResourcesInSatellite.cs (1)
30.CopyTestAsset("AllResourcesInSatellite", callingMethod)
GivenThatWeWantAMessageWhenBuildingWithAPreviewSdk.cs (4)
18.CopyTestAsset("HelloWorld") 34.CopyTestAsset("HelloWorld") 50.CopyTestAsset("HelloWorld") 66.CopyTestAsset("HelloWorld")
GivenThatWeWantBuildsToBeIncremental.cs (2)
18.CopyTestAsset("HelloWorld", identifier: targetFramework) 41.CopyTestAsset("HelloWorld", identifier: targetFramework)
GivenThatWeWantDiagnosticsWhenAssetsFileCannotBeRead.cs (3)
17var testAsset = _testAssetsManager.CopyTestAsset("HelloWorld").WithSource().Restore(Log); 30var testAsset = _testAssetsManager.CopyTestAsset("HelloWorld").WithSource(); 40var testAsset = _testAssetsManager.CopyTestAsset("HelloWorld").WithSource().Restore(Log);
GivenThatWeWantImplicitNamespaceImportsDisabled.cs (1)
16.CopyTestAsset("InferredTypeVariableName")
GivenThatWeWantMSBuildToRespectCustomCulture.cs (2)
18.CopyTestAsset("MSBuildCultureResourceGeneration", identifier: targetFramework) 36.CopyTestAsset("MSBuildCultureResourceGeneration", identifier: targetFramework)
GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs (1)
20.CopyTestAsset("HelloWorld", identifier: targetFramework)
GivenThatWeWantSatelliteAssembliesHaveassemblyVersion.cs (1)
23.CopyTestAsset("AllResourcesInSatelliteDisableVersionGenerate", callingMethod)
GivenThatWeWantToBuildAComServerLibrary.cs (13)
20.CopyTestAsset("ComServer") 50.CopyTestAsset("ComServer") 83.CopyTestAsset("ComServer", rid) 113.CopyTestAsset("ComServer") 135.CopyTestAsset("ComServer") 156.CopyTestAsset("ComServerWithTypeLibs") 171.CopyTestAsset("ComServerWithTypeLibs") 192.CopyTestAsset("ComServerWithTypeLibs") 217.CopyTestAsset("ComServerWithTypeLibs", identifier: id.ToString()) 237.CopyTestAsset("ComServerWithTypeLibs") 256.CopyTestAsset("ComServerWithTypeLibs") 273.CopyTestAsset("ComServerWithTypeLibs") 290.CopyTestAsset("ComServerWithDependencies")
GivenThatWeWantToBuildACppCliNonLibraryProject.cs (2)
20.CopyTestAsset("NETCoreCppClApp") 34.CopyTestAsset("NETCoreCppClApp")
GivenThatWeWantToBuildACppCliProject.cs (8)
20.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib") 57.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib") 91.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib") 105.CopyTestAsset("CppCliLibWithWpfFrameworkReference") 118.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib") 146.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib") 163.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib") 180.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib")
GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps.cs (1)
52.CopyTestAsset("NetCoreCppCliLibWithTransitiveDeps")
GivenThatWeWantToBuildACrossTargetedLibrary.cs (3)
18.CopyTestAsset(Path.Combine("CrossTargeting", "NetStandardAndNetCoreApp")) 46.CopyTestAsset("CrossTargeting") 86.CopyTestAsset(Path.Combine("CrossTargeting", "NetStandardAndNetCoreApp"), identifier: identifier)
GivenThatWeWantToBuildADesktopExe.cs (13)
22.CopyTestAsset("HelloWorld") 45var testAsset = _testAssetsManager.CopyTestAsset("AllResourcesInSatellite").WithSource().WithTargetFrameworks(tfm); 197.CopyTestAsset("DesktopMinusRid", identifier: Path.DirectorySeparatorChar + identifier + (multiTarget ? "Multi" : "")) 241.CopyTestAsset("DesktopMinusRid") 270.CopyTestAsset("DesktopMinusRid", identifier: Path.DirectorySeparatorChar + identifier + (multiTarget ? "Multi" : "")) 352.CopyTestAsset("DesktopMinusRid", identifier: Path.DirectorySeparatorChar + runtimeIdentifier) 373.CopyTestAsset("DesktopMinusRid") 747.CopyTestAsset("DesktopNeedsBindingRedirects") 772.CopyTestAsset("DesktopNeedsBindingRedirects") 783.CopyTestAsset("DesktopNeedsBindingRedirects") 813.CopyTestAsset("DesktopNeedsBindingRedirects") 833.CopyTestAsset("DesktopNeedsBindingRedirects") 857.CopyTestAsset("DesktopNeedsBindingRedirects")
GivenThatWeWantToBuildADesktopExeWithFSharp.cs (2)
19.CopyTestAsset("HelloWorldFS") 49.CopyTestAsset("HelloWorldFS")
GivenThatWeWantToBuildADesktopExeWtihNetStandardLib.cs (6)
89.CopyTestAsset(GetTemplateName(isSdk), identifier: (isSdk ? "sdk_" : "") + scenario.ToString()) 133.CopyTestAsset("DesktopAppWithLibrary-NonSDK") 180.CopyTestAsset(GetTemplateName(isSdk, usePackagesConfig), 264.CopyTestAsset(GetTemplateName(isSdk), identifier: isSdk.ToString()) 331.CopyTestAsset(GetTemplateName(isSdk), identifier: isSdk.ToString()) 369.CopyTestAsset(GetTemplateName(isSdk), identifier: isSdk.ToString())
GivenThatWeWantToBuildADesktopLibrary.cs (2)
117.CopyTestAsset(asset) 318.CopyTestAsset("DesktopReferencingNetStandardLibrary")
GivenThatWeWantToBuildALibrary.cs (11)
26.CopyTestAsset("AppWithLibrary", identifier: targetFramework) 49.CopyTestAsset("AppWithLibrary") 80.CopyTestAsset("AppWithLibrary", callingMethod, identifier: identifier) 121.CopyTestAsset(testAssetName, callingMethod, identifier) 256.CopyTestAsset("AppWithLibrary") 282.CopyTestAsset("AppWithLibrary", "ImplicitConfigurationConstants", configuration) 330.CopyTestAsset("AppWithLibrary", "ImplicitFrameworkConstants", targetFramework, identifier: expectedDefines.GetHashCode().ToString()) 402.CopyTestAsset("AppWithLibrary", "ImplicitFrameworkConstants", targetFramework, identifier: expectedDefines.GetHashCode().ToString()) 442.CopyTestAsset("AppWithLibrary", "ImplicitFrameworkConstants", targetFramework) 795.CopyTestAsset("UwpUsingSdkExtras") 1130.CopyTestAsset("AppWithLibrary", identifier: targetFramework)
GivenThatWeWantToBuildALibraryWithFSharp.cs (7)
21.CopyTestAsset("AppWithLibraryFS") 43.CopyTestAsset("AppWithLibraryFS") 73.CopyTestAsset("AppWithLibraryFS", callingMethod) 105.CopyTestAsset("AppWithLibraryFS") 119.CopyTestAsset("AppWithLibraryFS") 145.CopyTestAsset("AppWithLibraryFS", "ImplicitConfigurationConstantsFS", configuration) 177.CopyTestAsset("AppWithLibraryFS", "ImplicitFrameworkConstantsFS", targetFramework)
GivenThatWeWantToBuildALibraryWithVB.cs (7)
21.CopyTestAsset("AppWithLibraryVB") 43.CopyTestAsset("AppWithLibraryVB") 84.CopyTestAsset("AppWithLibraryVB", callingMethod) 116.CopyTestAsset("AppWithLibraryVB") 130.CopyTestAsset("AppWithLibraryVB") 156.CopyTestAsset("AppWithLibraryVB", "ImplicitConfigurationConstantsVB", configuration) 195.CopyTestAsset("AppWithLibraryVB", "ImplicitFrameworkConstantsVB", targetFramework, identifier: targetFramework)
GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs (2)
32.CopyTestAsset("AppWithLibraryAndRid") 68.CopyTestAsset("AppWithLibraryAndRid", "BuildFrameworkDependentRIDSpecific")
GivenThatWeWantToBuildAnAppWithLibrary.cs (5)
20.CopyTestAsset("AppWithLibrary") 30.CopyTestAsset("AppWithLibrary") 87.CopyTestAsset("KitchenSink") 132.CopyTestAsset("AppWithLibrary") 168.CopyTestAsset("AppxReferencingCrossTargeting")
GivenThatWeWantToBuildAnAppWithSharedProject.cs (2)
16.CopyTestAsset("AppWithSharedProject") 51.CopyTestAsset("AppWithSharedProject")
GivenThatWeWantToBuildAnAppWithTransitiveProjectRefs.cs (3)
20.CopyTestAsset("AppWithTransitiveProjectRefs", "BuildAppWithTransitiveProjectRef") 62.CopyTestAsset("AppWithTransitiveProjectRefs") 104.CopyTestAsset("AppWithTransitiveProjectRefs", "BuildAppWithTransitiveProjectRefDisabled")
GivenThatWeWantToBuildANetCoreApp.cs (2)
27.CopyTestAsset("HelloWorldWithSubDirs", callingMethod) 238.CopyTestAsset("HelloWorld")
GivenThatWeWantToBuildANetCoreAppWithWap.cs (1)
16.CopyTestAsset("TestAppWithWapAndWpf")
GivenThatWeWantToBuildAppsWithFrameworkRefs.cs (3)
16.CopyTestAsset("AppsWithFrameworkReferences") 25.CopyTestAsset("AppsWithFrameworkReferences") 71.CopyTestAsset("AppsWithFrameworkReferences", "CleanTargetRemovesAll")
GivenThatWeWantToBuildASelfContainedApp.cs (7)
32.CopyTestAsset("HelloWorld", identifier: targetFramework) 93.CopyTestAsset("HelloWorld") 121.CopyTestAsset("HelloWorld") 415.CopyTestAsset("HelloWorld", identifier: targetFramework + defineSelfContained.ToString()) 458.CopyTestAsset("HelloWorld", identifier: "ItDoesNotBuildSCDueToPSC") 565.CopyTestAsset("HelloWorld", identifier: targetFramework) 608.CopyTestAsset("HelloWorld", identifier: targetFramework)
GivenThatWeWantToBuildASolutionWithNonAnyCPUPlatform.cs (1)
16.CopyTestAsset("x64SolutionBuild")
GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs (1)
23.CopyTestAsset("HelloWorld", configuration)
GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs (1)
23.CopyTestAsset("HelloWorldVB", configuration)
GivenThatWeWantToBuildASolutionWithProjRefDiffCase.cs (1)
18.CopyTestAsset("AppWithProjRefCaseDiff")
GivenThatWeWantToBuildAUnitTestProject.cs (2)
16.CopyTestAsset("XUnitTestProject") 35.CopyTestAsset("XUnitTestProject")
GivenThatWeWantToBuildAWindowsRuntimeComponent.cs (1)
18.CopyTestAsset("WindowsRuntimeComponent")
GivenThatWeWantToBuildWithARuntimeIdentifier.cs (2)
18.CopyTestAsset("TestAppWithSlnAndCsprojFiles") 34.CopyTestAsset("TestAppWithSlnAndCsprojFiles")
GivenThatWeWantToCollectExceptionTelemetry.cs (1)
20var testAsset = _testAssetsManager.CopyTestAsset("HelloWorld").WithSource()
GivenThatWeWantToControlGeneratedAssemblyInfo.cs (12)
29.CopyTestAsset("HelloWorld", identifier: Path.DirectorySeparatorChar + attributeToOptOut) 249.CopyTestAsset("HelloWorld", identifier: targetFramework) 278.CopyTestAsset("HelloWorld", identifier: targetFramework) 305.CopyTestAsset("KitchenSink", identifier: targetFramework) 343.CopyTestAsset("HelloWorld") 372.CopyTestAsset("HelloWorld", identifier: $"{enablePreviewFeatures}${generateRequiresPreviewFeaturesAttribute}${targetFramework}") 438.CopyTestAsset("HelloWorld") 535.CopyTestAsset("HelloWorld") 562.CopyTestAsset("HelloWorld") 588.CopyTestAsset("HelloWorld") 615.CopyTestAsset("HelloWorld") 641.CopyTestAsset("HelloWorld")
GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs (1)
23.CopyTestAsset("LinkTest", "LinkTest_", identifier)
GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs (1)
23.CopyTestAsset("HelloWorld", identifier: generatePackageOnBuild.ToString() + packAsTool.ToString())
GivenThatWeWantToUseAnalyzers.cs (6)
22.CopyTestAsset(testAssetName, identifier: isEnabled.ToString()) 44.CopyTestAsset(testAssetName, identifier: isEnabled.ToString()) 63.CopyTestAsset("WebApp") 83.CopyTestAsset("WebApp") 95.CopyTestAsset("WebApp") 232.CopyTestAsset(testAssetName, identifier: language)
GivenThereAreDefaultItems.cs (1)
458.CopyTestAsset("AppWithLibrary")
GivenWeWantToRequireWindowsForDesktopApps.cs (1)
148var testInstance = _testAssetsManager.CopyTestAsset("WindowsFormsTestApp")
MetadataUpdaterSupportTest.cs (2)
17.CopyTestAsset("HelloWorld") 41.CopyTestAsset("HelloWorld")
SourceLinkTests.cs (9)
104.CopyTestAsset("SourceLinkTestApp", testDestinationDirectory: Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString())) 121.CopyTestAsset("SourceLinkTestApp") 140.CopyTestAsset("SourceLinkTestApp") 156.CopyTestAsset("SourceLinkTestApp") 183.CopyTestAsset("SourceLinkTestApp", identifier: origin + multitarget.ToString()) 230.CopyTestAsset("SourceLinkTestApp", identifier: multitarget.ToString()) 264.CopyTestAsset("SourceLinkTestApp", identifier: multitarget.ToString()) 297.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib") 330.CopyTestAsset("DesktopWpf")
Microsoft.NET.Clean.Tests (3)
GivenThatWeWantToCleanAProject.cs (3)
19.CopyTestAsset("HelloWorld", "CleanHelloWorld") 49.CopyTestAsset("HelloWorld") 69.CopyTestAsset("HelloWorld")
Microsoft.NET.Pack.Tests (8)
GivenThatWeWantToPackACppCliProject.cs (1)
18.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib")
GivenThatWeWantToPackACrossTargetedLibrary.cs (1)
16.CopyTestAsset("CrossTargeting")
GivenThatWeWantToPackAHelloWorldProject.cs (5)
20.CopyTestAsset("HelloWorld", "PackHelloWorld") 84.CopyTestAsset("HelloWorld", identifier: optedOut.ToString()) 107.CopyTestAsset("HelloWorld") 133.CopyTestAsset("HelloWorld", identifier: packReleaseValue) 164.CopyTestAsset("HelloWorld")
GivenThatWeWantToPackASimpleLibrary.cs (1)
16.CopyTestAsset("HelloWorld")
Microsoft.NET.Publish.Tests (58)
GivenThatWeWantToExcludeAPackageFromPublish.cs (3)
21.CopyTestAsset("HelloWorld", "PublishExcludePackage", identifier: targetFramework) 72.CopyTestAsset("HelloWorld", "PublishPackagePublishFalse", identifier: targetFramework) 122.CopyTestAsset("HelloWorld", "PublishPrivateAssets", identifier: targetFramework)
GivenThatWeWantToPreserveCompilationContext.cs (1)
169.CopyTestAsset("CompilationContext", "PreserveCompilationContextRefs")
GivenThatWeWantToPublishAComServerLibrary.cs (1)
16.CopyTestAsset("ComServer")
GivenThatWeWantToPublishACppCliAppProject.cs (1)
18.CopyTestAsset("NETCoreCppClApp")
GivenThatWeWantToPublishACppCliProject.cs (2)
18.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib") 46.CopyTestAsset("NetCoreCsharpAppReferenceCppCliLib")
GivenThatWeWantToPublishAFrameworkDependentApp.cs (2)
42.CopyTestAsset(TestProjectName, $"It_publishes_with_or_without_apphost_{(useAppHost ?? "null")}_{targetFramework}") 103.CopyTestAsset(TestProjectName)
GivenThatWeWantToPublishAHelloWorldProject.cs (14)
33.CopyTestAsset("HelloWorld", identifier: targetFramework) 83.CopyTestAsset("HelloWorld", "SelfContained", identifier: targetFramework) 402.CopyTestAsset("DeployProjectReferencingSdkProject") 417.CopyTestAsset("HelloWorld") 432.CopyTestAsset("HelloWorld", $"{optedOut}") 451.CopyTestAsset("HelloWorld") 476.CopyTestAsset("TestAppWithSlnUsingPublishRelease") 495.CopyTestAsset("TestAppWithSlnUsingPublishReleaseConflictingCasing") 513.CopyTestAsset("TestAppWithSlnUsingPublishRelease") 530.CopyTestAsset("HelloWorld", $"PublishesWithProperyFormats") 551.CopyTestAsset("HelloWorld") 582.CopyTestAsset("HelloWorld", identifier: configOpt) 665.CopyTestAsset("HelloWorld") 701.CopyTestAsset("HelloWorld")
GivenThatWeWantToPublishAnAotApp.cs (2)
981.CopyTestAsset(testAssetName, identifier: targetFramework) 1001.CopyTestAsset(testAssetName, identifier: targetFramework)
GivenThatWeWantToPublishAnAppWithLibrariesAndRid.cs (1)
91.CopyTestAsset("AppWithLibraryAndRid", $"PublishAppWithLibraryAndRid{selfContained}")
GivenThatWeWantToPublishAnUnpublishableProject.cs (1)
16.CopyTestAsset("Unpublishable")
GivenThatWeWantToPublishAProjectWithAllFeatures.cs (1)
192.CopyTestAsset("KitchenSink", callingMethod, identifier: targetFramework)
GivenThatWeWantToPublishAProjectWithDependencies.cs (8)
22.CopyTestAsset("SimpleDependencies") 64.CopyTestAsset("DesktopNeedsBindingRedirects") 91.CopyTestAsset("NetCoreApp11WithP2P") 109.CopyTestAsset(project) 119string filterProjDir = _testAssetsManager.CopyTestAsset("StoreManifests").WithSource().Path; 158.CopyTestAsset(project) 168string filterProjDir = _testAssetsManager.CopyTestAsset("StoreManifests").WithSource().Path; 205.CopyTestAsset("KitchenSink", identifier: $"{expectAppDocPublished}_{expectLibProjectDocPublished}")
GivenThatWeWantToPublishASelfContainedApp.cs (5)
25.CopyTestAsset(TestProjectName) 50.CopyTestAsset(TestProjectName) 80.CopyTestAsset(TestProjectName) 112.CopyTestAsset("AppWithNetCoreAppLib") 228.CopyTestAsset(TestProjectName)
GivenThatWeWantToPublishASingleFileApp.cs (1)
58.CopyTestAsset(TestProjectName, callingMethod, identifier)
GivenThatWeWantToPublishAToolProject.cs (1)
26.CopyTestAsset("PortableTool", callingMethod)
GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs (1)
21.CopyTestAsset("PortableTool", callingMethod)
GivenThatWeWantToPublishAWebApp.cs (1)
18.CopyTestAsset("WebApp")
GivenThatWeWantToPublishWithGeneratePackageOnBuildAndPackAsTool.cs (2)
25.CopyTestAsset("HelloWorld", identifier: generatePackageOnBuild.ToString() + packAsTool.ToString()) 51.CopyTestAsset("HelloWorld", identifier: generatePackageOnBuild.ToString() + packAsTool.ToString())
GivenThatWeWantToRunILLink.cs (4)
257var testAsset = _testAssetsManager.CopyTestAsset(projectName) 726.CopyTestAsset(testAssetName, identifier: targetFramework) 749.CopyTestAsset(testAssetName, identifier: targetFramework) 769.CopyTestAsset(testAssetName, identifier: targetFramework)
GivenThatWeWantToStoreAProjectWithDependencies.cs (6)
58.CopyTestAsset("TargetManifests") 88.CopyTestAsset("TargetManifests") 131.CopyTestAsset("TargetManifests", "multifile") 185.CopyTestAsset("TargetManifests") 219.CopyTestAsset("TargetManifests") 311.CopyTestAsset("TargetManifests")
Microsoft.NET.Rebuild.Tests (1)
GivenThatWeWantToRebuildAProject.cs (1)
19.CopyTestAsset("HelloWorld", "RebuildHelloWorld")
Microsoft.NET.Restore.Tests (1)
GivenThatWeWantToUseFrameworkRoslyn.cs (1)
176.CopyTestAsset("DesktopWpf")
Microsoft.NET.Sdk.Razor.Tests (1)
MvcBuildIntegrationTest22.cs (1)
18.CopyTestAsset(testAsset)
Microsoft.NET.Sdk.StaticWebAssets.Tests (1)
StaticWebAssetsPackIntegrationTest.cs (1)
1627.CopyTestAsset(testAsset, testAssetSubdirectory: "TestPackages")
Microsoft.NET.TestFramework (2)
AspNetSdkTest.cs (2)
41.CopyTestAsset(testAsset, callingMethod: callerName, testAssetSubdirectory: subdirectory, identifier: identifier) 78.CopyTestAsset(testAsset, callingMethod: callerName, testAssetSubdirectory: subdirectory, identifier: identifier)
Microsoft.NET.ToolPack.Tests (15)
GivenThatWeWantToPackAToolProject.cs (3)
26.CopyTestAsset("PortableTool", id) 76.CopyTestAsset("PortableTool") 314.CopyTestAsset("PortableTool")
GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs (1)
23.CopyTestAsset("PortableTool", identifier: multiTarget.ToString())
GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs (2)
23.CopyTestAsset("PortableTool", "PackPortableToolToolEntryPoint") 59.CopyTestAsset("PortableTool", "PackPortableToolToolCommandName")
GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs (2)
23.CopyTestAsset("PortableToolWithP2P", callingMethod) 86.CopyTestAsset("HelloWorld", identifier: generatePackageOnBuild.ToString() + packAsTool.ToString())
GivenThatWeWantToPackAToolProjectWithP2PReference.cs (1)
18.CopyTestAsset("PortableToolWithP2P", callingMethod)
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (2)
54.CopyTestAsset("PortableTool", assetName) 144.CopyTestAsset("PortableTool", "PackagedShimOutputRootDirectory" + multiTarget.ToString(), identifier: multiTarget.ToString() + targetFramework)
GivenThatWeWantToPackAToolSelfContainedProject.cs (1)
49.CopyTestAsset("PortableTool", callingMethod)
GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs (1)
31.CopyTestAsset("PortableTool", "PackNonSupportedTFM", identifier: targetFrameworkProperty + targetFramework)
GivenThatWeWantToTestPackAToolProject.cs (1)
16.CopyTestAsset("PortableToolWithTestProject")
PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs (1)
67.CopyTestAsset("PortableTool", uniqueName)
msbuild.Integration.Tests (6)
GivenDotnetInvokesMSBuild.cs (6)
21var testInstance = _testAssetsManager.CopyTestAsset("MSBuildIntegration", identifier: command) 37var testInstance = _testAssetsManager.CopyTestAsset("MSBuildIntegration", identifier: command) 58var testInstance = _testAssetsManager.CopyTestAsset("MSBuildIntegration", identifier: command) 75var testInstance = _testAssetsManager.CopyTestAsset("MSBuildIntegration") 89var testInstance = _testAssetsManager.CopyTestAsset("MSBuildIntegration") 102var testInstance = _testAssetsManager.CopyTestAsset("MSBuildIntegration")