1 instantiation of TestEnvironment
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
66var env = new TestEnvironment(output ?? new DefaultOutput());
1085 references to TestEnvironment
Microsoft.Build.BuildCheck.UnitTests (34)
ConfigurationProvider_Tests.cs (14)
21using TestEnvironment testEnvironment = TestEnvironment.Create(); 42using TestEnvironment testEnvironment = TestEnvironment.Create(); 69using TestEnvironment testEnvironment = TestEnvironment.Create(); 102using TestEnvironment testEnvironment = TestEnvironment.Create(); 127using TestEnvironment testEnvironment = TestEnvironment.Create(); 158using TestEnvironment testEnvironment = TestEnvironment.Create(); 190using TestEnvironment testEnvironment = TestEnvironment.Create();
EditorConfigParser_Tests.cs (4)
63using TestEnvironment testEnvironment = TestEnvironment.Create(); 95using TestEnvironment testEnvironment = TestEnvironment.Create();
EndToEndTests.cs (10)
25private readonly TestEnvironment _env; 31_env = TestEnvironment.Create(output); 671using (var env = TestEnvironment.Create()) 851using (var env = TestEnvironment.Create()) 884using (var env = TestEnvironment.Create()) 912using (var env = TestEnvironment.Create())
TaskInvocationAnalysisDataTests.cs (2)
83using (var env = TestEnvironment.Create(_output))
TestAssemblyInfo.cs (4)
35private TestEnvironment _testEnvironment; 64_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 128private TestEnvironment _testEnvironment; 132_testEnvironment = TestEnvironment.Create();
Microsoft.Build.CommandLine.UnitTests (58)
CommandLineSwitches_Tests.cs (6)
1133using (TestEnvironment env = TestEnvironment.Create()) 1420using (TestEnvironment env = TestEnvironment.Create()) 1601using TestEnvironment testEnvironment = TestEnvironment.Create();
MSBuildMultithreaded_Tests.cs (2)
115private readonly TestEnvironment _env; 120_env = TestEnvironment.Create(output);
MSBuildServer_Tests.cs (2)
62private readonly TestEnvironment _env; 86_env = TestEnvironment.Create(_output);
PerfLog_Tests.cs (4)
26using (TestEnvironment testEnv = TestEnvironment.Create(_output)) 61using (TestEnvironment testEnv = TestEnvironment.Create(_output))
TestAssemblyInfo.cs (4)
35private TestEnvironment _testEnvironment; 64_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 128private TestEnvironment _testEnvironment; 132_testEnvironment = TestEnvironment.Create();
XMake_BinlogSwitch_Tests.cs (2)
24private readonly TestEnvironment _env; 29_env = TestEnvironment.Create(output);
XMake_Tests.cs (38)
79private readonly TestEnvironment _env; 84_env = TestEnvironment.Create(_output); 556using TestEnvironment env = TestEnvironment.Create(); 596using TestEnvironment env = TestEnvironment.Create(); 779using TestEnvironment env = TestEnvironment.Create(); 815using TestEnvironment env = TestEnvironment.Create(); 869using TestEnvironment env = TestEnvironment.Create(); 888using TestEnvironment env = TestEnvironment.Create(); 922using TestEnvironment env = TestEnvironment.Create(); 950using TestEnvironment env = TestEnvironment.Create(); 1012using TestEnvironment testEnvironment = TestEnvironment.Create(); 1222using TestEnvironment testEnvironment = TestEnvironment.Create(); 1370using (TestEnvironment env = TestEnvironment.Create()) 2663using (var env = TestEnvironment.Create()) 2690using (var env = TestEnvironment.Create()) 2993using TestEnvironment testEnvironment = TestEnvironment.Create(); 3025using TestEnvironment testEnvironment = TestEnvironment.Create(); 3049using var testEnvironment = TestEnvironment.Create(); 3093using TestEnvironment testEnvironment = TestEnvironment.Create(); 3137using TestEnvironment testEnvironment = TestEnvironment.Create();
Microsoft.Build.Engine.OM.UnitTests (93)
Construction\ConstructionEditing_Tests.cs (2)
3208using (var env = TestEnvironment.Create())
Construction\ProjectRootElement_Tests.cs (8)
1287using (var env = TestEnvironment.Create()) 1326using (var env = TestEnvironment.Create()) 1588using (var env = TestEnvironment.Create()) 1728using (var env = TestEnvironment.Create())
Construction\ProjectTargetElement_Tests.cs (2)
345using (TestEnvironment env = TestEnvironment.Create())
Construction\SolutionFile_Tests.cs (2)
711using (TestEnvironment testEnvironment = TestEnvironment.Create())
Definition\DefinitionEditing_Tests.cs (2)
1695using (var env = TestEnvironment.Create())
Definition\Project_Tests.cs (34)
1443using (var env = TestEnvironment.Create()) 1508using (var env = TestEnvironment.Create()) 1594using (var env = TestEnvironment.Create()) 3250using (var env = TestEnvironment.Create()) 3278using (var env = TestEnvironment.Create()) 3571using (var env = TestEnvironment.Create()) 3764using (var env = TestEnvironment.Create()) 3841using (var env = TestEnvironment.Create()) 3860using (var env = TestEnvironment.Create()) 3889using (var env = TestEnvironment.Create(_output)) 3932using (var env = TestEnvironment.Create(_output)) 3971using (var env = TestEnvironment.Create(_output)) 4016using (var env = TestEnvironment.Create(_output)) 4063using (var env = TestEnvironment.Create(_output)) 4103using (var env = TestEnvironment.Create(_output)) 4146using (var env = TestEnvironment.Create(_output)) 4191using (var env = TestEnvironment.Create(_output))
Definition\ProjectItem_Tests.cs (37)
57protected readonly TestEnvironment _env; 62_env = TestEnvironment.Create(); 447using (TestEnvironment env = TestEnvironment.Create()) 776using (var env = TestEnvironment.Create()) 823using (var env = TestEnvironment.Create()) 931using (var env = TestEnvironment.Create()) 942private static void CreateProjectInstanceFromFileWithDriveEnumeratingWildcard(TestEnvironment env, string testProjectFile, bool throwException) 1096using (var env = TestEnvironment.Create()) 1149using (var env = TestEnvironment.Create()) 1169using (var env = TestEnvironment.Create()) 2153using (var env = TestEnvironment.Create()) 2179using (var env = TestEnvironment.Create()) 2210using (var env = TestEnvironment.Create()) 2270using (var env = TestEnvironment.Create()) 2552using (var env = TestEnvironment.Create()) 2589using (var env = TestEnvironment.Create()) 3115using var env = TestEnvironment.Create(); 3315using var env = TestEnvironment.Create(); 3705using (var env = TestEnvironment.Create()) 3744using (var env = TestEnvironment.Create())
NugetRestoreTests.cs (2)
39using TestEnvironment testEnvironment = TestEnvironment.Create();
TestAssemblyInfo.cs (4)
35private TestEnvironment _testEnvironment; 64_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 128private TestEnvironment _testEnvironment; 132_testEnvironment = TestEnvironment.Create();
Microsoft.Build.Engine.UnitTests (580)
BackEnd\AppHostSupport_Tests.cs (6)
88using (TestEnvironment env = TestEnvironment.Create(_output)) 107using (TestEnvironment env = TestEnvironment.Create(_output)) 135using (TestEnvironment env = TestEnvironment.Create(_output))
BackEnd\AssemblyTaskFactory_E2E_Tests.cs (4)
31using TestEnvironment env = TestEnvironment.Create(_output); 52using TestEnvironment env = TestEnvironment.Create(_output);
BackEnd\BuildManager_Logging_Tests.cs (2)
61private readonly TestEnvironment _env; 75_env = TestEnvironment.Create(output);
BackEnd\BuildManager_Tests.cs (8)
60private readonly TestEnvironment _env; 87_env = TestEnvironment.Create(output); 3732using (var env = TestEnvironment.Create()) 4069using (var env = TestEnvironment.Create(_output)) 4121using (var env = TestEnvironment.Create())
BackEnd\BuildRequestConfiguration_Tests.cs (2)
27private TestEnvironment _env; 31_env = TestEnvironment.Create(testOutput);
BackEnd\CacheAggregator_Tests.cs (12)
47using (var env = TestEnvironment.Create()) 60using (var env = TestEnvironment.Create()) 86using (var env = TestEnvironment.Create()) 113using (var env = TestEnvironment.Create()) 136using (var env = TestEnvironment.Create()) 167using (var env = TestEnvironment.Create())
BackEnd\DebugUtils_tests.cs (6)
46using TestEnvironment env = TestEnvironment.Create(); 80using TestEnvironment env = TestEnvironment.Create(); 114using (TestEnvironment env = TestEnvironment.Create())
BackEnd\GenerateTemporaryTargetAssembly_Tests.cs (2)
19using (TestEnvironment testenv = TestEnvironment.Create())
BackEnd\IntrinsicTask_Tests.cs (4)
1823using (var env = TestEnvironment.Create()) 2522using (var env = TestEnvironment.Create())
BackEnd\MSBuild_Tests.cs (6)
778using TestEnvironment env = TestEnvironment.Create(); 809using TestEnvironment env = TestEnvironment.Create(); 853using TestEnvironment env = TestEnvironment.Create();
BackEnd\ResultsCache_Tests.cs (2)
402using (var env = TestEnvironment.Create())
BackEnd\SdkResolverLoader_Tests.cs (16)
218using (var env = TestEnvironment.Create(_output)) 243using (var env = TestEnvironment.Create(_output)) 270using (var env = TestEnvironment.Create(_output)) 294using (var env = TestEnvironment.Create(_output)) 310using (var env = TestEnvironment.Create(_output)) 334using (var env = TestEnvironment.Create(_output)) 362using (var env = TestEnvironment.Create(_output)) 408using (var env = TestEnvironment.Create(_output))
BackEnd\SdkResultOutOfProc_Tests.cs (2)
43private readonly TestEnvironment _env; 54_env = TestEnvironment.Create(output);
BackEnd\TargetBuilder_Tests.cs (4)
221using (var env = TestEnvironment.Create()) 258using (var env = TestEnvironment.Create())
BackEnd\TargetEntry_Tests.cs (2)
646using (var env = TestEnvironment.Create(_output))
BackEnd\TaskBuilder_Tests.cs (6)
79using TestEnvironment env = TestEnvironment.Create(); 131using (TestEnvironment env = TestEnvironment.Create(_testOutput)) 645using var env = TestEnvironment.Create();
BackEnd\TaskExecutionHost_Tests.cs (2)
1069using TestEnvironment env = TestEnvironment.Create();
BackEnd\TaskHostCallback_Tests.cs (16)
39using TestEnvironment env = TestEnvironment.Create(_output); 71using TestEnvironment env = TestEnvironment.Create(_output); 118using TestEnvironment env = TestEnvironment.Create(_output); 151using TestEnvironment env = TestEnvironment.Create(_output); 183using TestEnvironment env = TestEnvironment.Create(_output); 216using TestEnvironment env = TestEnvironment.Create(_output); 261using TestEnvironment env = TestEnvironment.Create(_output); 309using TestEnvironment env = TestEnvironment.Create(_output);
BackEnd\TaskHostFactory_Tests.cs (8)
50using (TestEnvironment env = TestEnvironment.Create()) 157using (TestEnvironment env = TestEnvironment.Create(_output)) 224using TestEnvironment env = TestEnvironment.Create(_output); 375using TestEnvironment env = TestEnvironment.Create();
BackEnd\TaskRegistry_Tests.cs (2)
613using (var env = TestEnvironment.Create(_output))
BackEnd\TaskRouter_IntegrationTests.cs (2)
31private readonly TestEnvironment _env; 37_env = TestEnvironment.Create(output);
BinaryLogger_Tests.cs (12)
76private readonly TestEnvironment _env; 81_env = TestEnvironment.Create(output); 321using (TestEnvironment env = TestEnvironment.Create()) 366using (TestEnvironment env = TestEnvironment.Create()) 555using var env = TestEnvironment.Create(); 599using (TestEnvironment env = TestEnvironment.Create()) 714using (TestEnvironment env = TestEnvironment.Create())
ChangeWaves_Tests.cs (18)
30private void SetChangeWave(string wave, TestEnvironment env) 45private void buildSimpleProjectAndValidateChangeWave(TestEnvironment testEnvironment, Version versionToCheckAgainstCurrentChangeWave, Version currentChangeWaveShouldUltimatelyResolveTo, params string[] warningCodesLogShouldContain) 81using (TestEnvironment env = TestEnvironment.Create()) 102using (TestEnvironment env = TestEnvironment.Create()) 123using (TestEnvironment env = TestEnvironment.Create()) 140using (TestEnvironment env = TestEnvironment.Create()) 160using (TestEnvironment env = TestEnvironment.Create()) 184using (TestEnvironment env = TestEnvironment.Create()) 198using (TestEnvironment env = TestEnvironment.Create()) 221using (TestEnvironment env = TestEnvironment.Create())
CLR2TaskHost_E2E_Tests.cs (2)
42using TestEnvironment env = TestEnvironment.Create(_output);
ConsoleLogger_Tests.cs (6)
189using var env = TestEnvironment.Create(_output); 229using var env = TestEnvironment.Create(_output); 272using var env = TestEnvironment.Create(_output);
Construction\ProjectImportElement_Tests.cs (6)
20using (TestEnvironment testEnvironment = TestEnvironment.Create()) 57using (TestEnvironment testEnvironment = TestEnvironment.Create()) 97using (var env = TestEnvironment.Create())
Construction\ProjectRootElement_Tests.cs (4)
69using (var env = TestEnvironment.Create()) 100using (var env = TestEnvironment.Create())
Construction\SolutionFile_NewParser_Tests.cs (2)
133using (TestEnvironment testEnvironment = TestEnvironment.Create())
Construction\SolutionFile_OldParser_Tests.cs (4)
296using (var env = TestEnvironment.Create()) 772using (var env = TestEnvironment.Create())
Construction\SolutionFilter_Tests.cs (10)
51using (TestEnvironment testEnvironment = TestEnvironment.Create()) 211using (TestEnvironment testEnvironment = TestEnvironment.Create()) 229using (TestEnvironment testEnvironment = TestEnvironment.Create()) 290using TestEnvironment testEnvironment = TestEnvironment.Create(); 392using TestEnvironment testEnvironment = TestEnvironment.Create();
Construction\SolutionProjectGenerator_Tests.cs (45)
67using (TestEnvironment testEnvironment = TestEnvironment.Create()) 96using (TestEnvironment testEnvironment = TestEnvironment.Create()) 119using (TestEnvironment testEnvironment = TestEnvironment.Create()) 164using (TestEnvironment testEnvironment = TestEnvironment.Create()) 239using (TestEnvironment testEnvironment = TestEnvironment.Create()) 400using (TestEnvironment testEnvironment = TestEnvironment.Create()) 441using (TestEnvironment testEnvironment = TestEnvironment.Create()) 518using (TestEnvironment testEnvironment = TestEnvironment.Create()) 559using (TestEnvironment testEnvironment = TestEnvironment.Create()) 926using (TestEnvironment env = TestEnvironment.Create()) 1317using (TestEnvironment testEnvironment = TestEnvironment.Create()) 1389using (TestEnvironment testEnvironment = TestEnvironment.Create()) 1585using (TestEnvironment testEnvironment = TestEnvironment.Create()) 1959using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2020using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2109using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2372using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2430using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2489using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2542using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2920using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2972using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2978private static SolutionFile ParseSolutionHelper(string solutionFileContents, bool isOptInSlnParsingWithNewParser, TestEnvironment testEnvironment)
Definition\Project_Internal_Tests.cs (8)
233using (var env = TestEnvironment.Create()) 270using (TestEnvironment testEnvironment = TestEnvironment.Create()) 298using (TestEnvironment testEnvironment = TestEnvironment.Create()) 326using (TestEnvironment testEnvironment = TestEnvironment.Create())
Definition\ProjectEvaluationContext_Tests.cs (2)
32_env = TestEnvironment.Create(); 48private readonly TestEnvironment _env;
Evaluation\EvaluationLogging_Tests.cs (2)
73using (var env = TestEnvironment.Create())
Evaluation\Evaluator_Tests.cs (22)
56using TestEnvironment env = TestEnvironment.Create(); 74using (TestEnvironment env = TestEnvironment.Create()) 105using (TestEnvironment env = TestEnvironment.Create()) 979using (TestEnvironment env = TestEnvironment.Create()) 1742using (var env = TestEnvironment.Create()) 1826using (var env = TestEnvironment.Create()) 4597using (var env = TestEnvironment.Create()) 4646using (TestEnvironment testEnvironment = TestEnvironment.Create()) 4675using (TestEnvironment testEnvironment = TestEnvironment.Create()) 5030using (TestEnvironment env = TestEnvironment.Create()) 5078using (TestEnvironment env = TestEnvironment.Create())
Evaluation\Expander_Tests.cs (24)
2628using (var env = TestEnvironment.Create()) 4883using (var env = TestEnvironment.Create()) 4927using (var env = TestEnvironment.Create()) 4962using (var env = TestEnvironment.Create()) 5002using (var env = TestEnvironment.Create()) 5043using (var env = TestEnvironment.Create()) 5083using (var env = TestEnvironment.Create()) 5126using (var env = TestEnvironment.Create()) 5172using (var env = TestEnvironment.Create()) 5203using (var env = TestEnvironment.Create()) 5232using (var env = TestEnvironment.Create()) 5272using (var env = TestEnvironment.Create())
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (2)
865using TestEnvironment testEnvironment = TestEnvironment.Create();
Evaluation\IntrinsicFunctionOverload_Tests.cs (48)
32using TestEnvironment env = TestEnvironment.Create(); 54using TestEnvironment env = TestEnvironment.Create(); 76using TestEnvironment env = TestEnvironment.Create(); 98using TestEnvironment env = TestEnvironment.Create(); 120using TestEnvironment env = TestEnvironment.Create(); 131using TestEnvironment env = TestEnvironment.Create(); 172using TestEnvironment env = TestEnvironment.Create(); 213using TestEnvironment env = TestEnvironment.Create(); 263using TestEnvironment env = TestEnvironment.Create(); 285using TestEnvironment env = TestEnvironment.Create(); 307using TestEnvironment env = TestEnvironment.Create(); 329using TestEnvironment env = TestEnvironment.Create(); 349using TestEnvironment env = TestEnvironment.Create(); 371using TestEnvironment env = TestEnvironment.Create(); 393using TestEnvironment env = TestEnvironment.Create(); 415using TestEnvironment env = TestEnvironment.Create(); 435using TestEnvironment env = TestEnvironment.Create(); 457using TestEnvironment env = TestEnvironment.Create(); 479using TestEnvironment env = TestEnvironment.Create(); 501using TestEnvironment env = TestEnvironment.Create(); 521using TestEnvironment env = TestEnvironment.Create(); 543using TestEnvironment env = TestEnvironment.Create(); 565using TestEnvironment env = TestEnvironment.Create(); 588using TestEnvironment env = TestEnvironment.Create();
Evaluation\ItemEvaluation_Tests.cs (6)
589using (var env = TestEnvironment.Create()) 652using var env = TestEnvironment.Create(); 682using (var env = TestEnvironment.Create())
Evaluation\Preprocessor_Tests.cs (6)
848using (TestEnvironment env = TestEnvironment.Create()) 939using (TestEnvironment env = TestEnvironment.Create()) 1054using (TestEnvironment env = TestEnvironment.Create())
Evaluation\ProjectCollection_Tests.cs (2)
22using (TestEnvironment env = TestEnvironment.Create())
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
70private TestEnvironment _env; 86_env = TestEnvironment.Create();
Evaluation\SdkResultEvaluation_Tests.cs (2)
25private TestEnvironment _env; 36_env = TestEnvironment.Create();
EvaluationProfiler_Tests.cs (2)
28private readonly TestEnvironment _env; 62_env = TestEnvironment.Create(output);
FileLogger_Tests.cs (4)
357using (var env = TestEnvironment.Create()) 393using (var testEnvironment = TestEnvironment.Create())
FileMatcher_Tests.cs (12)
24private readonly TestEnvironment _env; 29_env = TestEnvironment.Create(output); 1103using (var env = TestEnvironment.Create()) 1184using (var env = TestEnvironment.Create()) 1308using (var env = TestEnvironment.Create()) 1374using (var env = TestEnvironment.Create()) 1413using (var env = TestEnvironment.Create())
Graph\GetCompatiblePlatformGraph_Tests.cs (22)
29using (var env = TestEnvironment.Create()) 56using (var env = TestEnvironment.Create()) 97using (var env = TestEnvironment.Create()) 139using (var env = TestEnvironment.Create()) 180using (var env = TestEnvironment.Create()) 207using (var env = TestEnvironment.Create()) 235using (var env = TestEnvironment.Create()) 262using (var env = TestEnvironment.Create()) 290using (var env = TestEnvironment.Create()) 320using (var env = TestEnvironment.Create()) 348using (TestEnvironment testEnvironment = TestEnvironment.Create())
Graph\GraphLoadedFromSolution_tests.cs (2)
26private TestEnvironment _env; 30_env = TestEnvironment.Create(output);
Graph\GraphTestingUtilities.cs (1)
197TestEnvironment env,
Graph\IsolateProjects_Tests.cs (3)
130private TestEnvironment _env; 136_env = TestEnvironment.Create(_testOutput, ignoreBuildErrorFiles: true); 558TransientTestFile CreateTmpFile(TestEnvironment env)
Graph\ProjectGraph_Tests.cs (90)
31private TestEnvironment _env; 45_env = TestEnvironment.Create(outputHelper); 63using (var env = TestEnvironment.Create()) 90using (var env = TestEnvironment.Create()) 101using (var env = TestEnvironment.Create()) 133using (var env = TestEnvironment.Create()) 180using (var env = TestEnvironment.Create()) 204using (var env = TestEnvironment.Create()) 226using (var env = TestEnvironment.Create()) 250using (var env = TestEnvironment.Create()) 304using (var env = TestEnvironment.Create()) 318using (var env = TestEnvironment.Create()) 331using (var env = TestEnvironment.Create()) 388using (var env = TestEnvironment.Create()) 421using (var env = TestEnvironment.Create()) 440using (var env = TestEnvironment.Create()) 480using (var env = TestEnvironment.Create()) 511using (var env = TestEnvironment.Create()) 553using (var env = TestEnvironment.Create()) 574using (var env = TestEnvironment.Create()) 595using (var env = TestEnvironment.Create()) 629using (var env = TestEnvironment.Create()) 666using (var env = TestEnvironment.Create()) 697using (var env = TestEnvironment.Create()) 918using (var env = TestEnvironment.Create()) 947using (var env = TestEnvironment.Create()) 975using (var env = TestEnvironment.Create()) 1001using (var env = TestEnvironment.Create()) 1019using (var env = TestEnvironment.Create()) 1037using (var env = TestEnvironment.Create()) 1060using (var env = TestEnvironment.Create()) 1083using (var env = TestEnvironment.Create()) 1098using (var env = TestEnvironment.Create()) 1127using (var env = TestEnvironment.Create()) 1168using (var env = TestEnvironment.Create()) 1284using (var env = TestEnvironment.Create()) 1390using (var env = TestEnvironment.Create()) 1408using (var env = TestEnvironment.Create()) 1438using (var env = TestEnvironment.Create()) 1472using (var env = TestEnvironment.Create()) 1629using (var env = TestEnvironment.Create()) 1810using (var env = TestEnvironment.Create()) 2326using (var env = TestEnvironment.Create()) 2345using (var env = TestEnvironment.Create()) 2834using (var env = TestEnvironment.Create()) 2890using (var env = TestEnvironment.Create())
Graph\ResultCacheBasedBuilds_Tests.cs (5)
32_env = TestEnvironment.Create(_output); 43private readonly TestEnvironment _env; 423TestEnvironment env, 511private static TransientTestFile CreateProjectFileWrapper(TestEnvironment env, int projectNumber, int[] projectReferences, Dictionary<string, string[]> projectReferenceTargets, string defaultTargets, string extraContent) 517TestEnvironment env,
Instance\ProjectInstance_Internal_Tests.cs (6)
762using (var env = TestEnvironment.Create()) 890using (TestEnvironment testEnvironment = TestEnvironment.Create()) 918using (TestEnvironment testEnvironment = TestEnvironment.Create())
MSBuildTaskHostTests.cs (2)
24private readonly TestEnvironment _environment = TestEnvironment.Create(testOutput);
NetTaskHost_E2E_Tests.cs (18)
35using TestEnvironment env = TestEnvironment.Create(_output); 64using TestEnvironment env = TestEnvironment.Create(_output); 87using TestEnvironment env = TestEnvironment.Create(_output); 109using TestEnvironment env = TestEnvironment.Create(_output); 169using TestEnvironment env = TestEnvironment.Create(_output); 186using TestEnvironment env = TestEnvironment.Create(_output); 210using TestEnvironment env = TestEnvironment.Create(_output); 233using TestEnvironment env = TestEnvironment.Create(_output); 262using TestEnvironment env = TestEnvironment.Create(_output);
PrintLineDebugger_Tests.cs (8)
112using (var env = TestEnvironment.Create()) 204using (var env = TestEnvironment.Create()) 226using (var env = TestEnvironment.Create()) 248using (var env = TestEnvironment.Create())
ProjectCache\ProjectCacheTests.cs (3)
37_env = TestEnvironment.Create(output); 125public ProjectGraph CreateGraph(TestEnvironment env) 346private readonly TestEnvironment _env;
SolutionFileBuilder.cs (1)
79TestEnvironment env,
TaskHostFactoryLifecycle_E2E_Tests.cs (2)
65using TestEnvironment env = TestEnvironment.Create(_output);
Telemetry\Telemetry_Tests.cs (4)
240using TestEnvironment env = TestEnvironment.Create(); 278using var testEnv = TestEnvironment.Create(_output);
TerminalLogger_Tests.cs (6)
215using TestEnvironment testEnvironment = TestEnvironment.Create(); 897using (TestEnvironment env = TestEnvironment.Create()) 1028using (TestEnvironment env = TestEnvironment.Create())
TerminalLoggerConfiguration_Tests.cs (2)
23private readonly TestEnvironment _env; 29_env = TestEnvironment.Create(output);
TestAssemblyInfo.cs (4)
35private TestEnvironment _testEnvironment; 64_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 128private TestEnvironment _testEnvironment; 132_testEnvironment = TestEnvironment.Create();
TypeLoader_Tests.cs (2)
100using (TestEnvironment env = TestEnvironment.Create())
Utilities_Tests.cs (2)
72using TestEnvironment env = TestEnvironment.Create();
WarningsAsMessagesAndErrors_Tests.cs (30)
44using (TestEnvironment testEnvironment = TestEnvironment.Create(_output)) 138using (TestEnvironment testEnvironment = TestEnvironment.Create(_output)) 287using (TestEnvironment env = TestEnvironment.Create(_output)) 319using (TestEnvironment env = TestEnvironment.Create(_output)) 376using (TestEnvironment env = TestEnvironment.Create(_output)) 405using (TestEnvironment env = TestEnvironment.Create(_output)) 427using (TestEnvironment env = TestEnvironment.Create(_output)) 452using (TestEnvironment env = TestEnvironment.Create(_output)) 474using (TestEnvironment env = TestEnvironment.Create(_output)) 494using (TestEnvironment env = TestEnvironment.Create(_output)) 514using (TestEnvironment env = TestEnvironment.Create(_output)) 537using (TestEnvironment env = TestEnvironment.Create(_output)) 568using (TestEnvironment env = TestEnvironment.Create(_output)) 607using (TestEnvironment env = TestEnvironment.Create(_output)) 644using (TestEnvironment env = TestEnvironment.Create(_output))
Microsoft.Build.Framework.UnitTests (4)
TestAssemblyInfo.cs (4)
35private TestEnvironment _testEnvironment; 64_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 128private TestEnvironment _testEnvironment; 132_testEnvironment = TestEnvironment.Create();
Microsoft.Build.Tasks.UnitTests (255)
AddToWin32Manifest_Tests.cs (4)
42using (TestEnvironment env = TestEnvironment.Create()) 80using (TestEnvironment env = TestEnvironment.Create())
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (6)
123using (TestEnvironment env = TestEnvironment.Create()) 159using (TestEnvironment env = TestEnvironment.Create()) 185using (TestEnvironment env = TestEnvironment.Create())
CodeTaskFactoryEmbeddedFileInBinlogTestHelper.cs (4)
27using var env = TestEnvironment.Create(); 103using var env = TestEnvironment.Create();
Copy_Tests.cs (32)
143using (var env = TestEnvironment.Create()) 168using (var env = TestEnvironment.Create()) 194using (var env = TestEnvironment.Create()) 239using (var env = TestEnvironment.Create()) 263using (var env = TestEnvironment.Create()) 295using (var env = TestEnvironment.Create()) 320using (var env = TestEnvironment.Create()) 345using (var env = TestEnvironment.Create()) 369using (var env = TestEnvironment.Create()) 394using (var env = TestEnvironment.Create()) 419using (var env = TestEnvironment.Create()) 445using (var env = TestEnvironment.Create()) 472using (var env = TestEnvironment.Create()) 1125using (var env = TestEnvironment.Create()) 2579using (var env = TestEnvironment.Create()) 3005using TestEnvironment env = TestEnvironment.Create();
CreateCSharpManifestResourceName_Tests.cs (14)
384using (var env = TestEnvironment.Create(_testOutput)) 416using (var env = TestEnvironment.Create()) 454using (var env = TestEnvironment.Create()) 487using (var env = TestEnvironment.Create()) 521using (var env = TestEnvironment.Create()) 552using (var env = TestEnvironment.Create()) 586using (var env = TestEnvironment.Create(_testOutput))
CreateItem_Tests.cs (6)
189using var env = TestEnvironment.Create(_testOutput); 292using (var env = TestEnvironment.Create()) 344using (var env = TestEnvironment.Create())
DownloadFile_Tests.cs (12)
30using (TestEnvironment testEnvironment = TestEnvironment.Create()) 60using (TestEnvironment testEnvironment = TestEnvironment.Create()) 109using (TestEnvironment testEnvironment = TestEnvironment.Create()) 140using (TestEnvironment testEnvironment = TestEnvironment.Create()) 208using (TestEnvironment testEnvironment = TestEnvironment.Create()) 324using (TestEnvironment testEnvironment = TestEnvironment.Create())
Exec_Tests.cs (14)
59using (var testEnvironment = TestEnvironment.Create()) 77using (var env = TestEnvironment.Create()) 115using (var testEnvironment = TestEnvironment.Create()) 554using (TestEnvironment testEnvironment = TestEnvironment.Create()) 954using (var env = TestEnvironment.Create(_output)) 1007using (var env = TestEnvironment.Create(_output)) 1059using (var env = TestEnvironment.Create(_output))
FindUnderPath_Tests.cs (4)
47using TestEnvironment env = TestEnvironment.Create(); 76using TestEnvironment env = TestEnvironment.Create();
GenerateBindingRedirects_Tests.cs (4)
23private readonly TestEnvironment _env; 28_env = TestEnvironment.Create(output); 265using (TestEnvironment env = TestEnvironment.Create())
GetSDKReference_Tests.cs (2)
274using (TestEnvironment env = TestEnvironment.Create())
HintPathResolver_Tests.cs (2)
19private readonly TestEnvironment _env; 23_env = TestEnvironment.Create(testOutput);
MSBuildInternalMessage_Tests.cs (10)
25using (TestEnvironment env = TestEnvironment.Create()) 70using (TestEnvironment env = TestEnvironment.Create()) 116using (TestEnvironment env = TestEnvironment.Create()) 194using (TestEnvironment env = TestEnvironment.Create()) 248using (TestEnvironment env = TestEnvironment.Create())
PortableTasks_Tests.cs (2)
46using (TestEnvironment env = TestEnvironment.Create(_outputHelper))
PrintLineDebugger_Tests.cs (8)
112using (var env = TestEnvironment.Create()) 204using (var env = TestEnvironment.Create()) 226using (var env = TestEnvironment.Create()) 248using (var env = TestEnvironment.Create())
RARPrecomputedCache_Tests.cs (6)
22using (TestEnvironment env = TestEnvironment.Create()) 57using (TestEnvironment env = TestEnvironment.Create()) 109using (TestEnvironment env = TestEnvironment.Create())
RemoveDir_Tests.cs (4)
51using (TestEnvironment env = TestEnvironment.Create(_output)) 103using (TestEnvironment env = TestEnvironment.Create(_output))
ResolveAssemblyReference_CustomCultureTests.cs (2)
41using (TestEnvironment env = TestEnvironment.Create(_output))
ResourceHandling\GenerateResource_Tests.cs (11)
25private readonly TestEnvironment _env; 30_env = TestEnvironment.Create(output); 2268using TestEnvironment env = TestEnvironment.Create(); 2344using var env = TestEnvironment.Create(_output); 3935using (var env = TestEnvironment.Create()) 4184TestEnvironment env = null, 4385public static string WriteTestResX(bool useType, string linkedBitmap, string extraToken, string resxFileToWrite = null, TestEnvironment env = null, bool includeDefaultString = true) 4396public static string WriteTestResX(bool useType, string linkedBitmap, string extraToken, bool useInvalidType, string resxFileToWrite = null, TestEnvironment env = null, bool includeDefaultString = true)
ResourceHandling\MSBuildResXReader_Tests.cs (4)
154using (var env = TestEnvironment.Create(_output)) 301using var env = TestEnvironment.Create(_output);
ResourceManagement_Tests.cs (2)
145using var env = TestEnvironment.Create();
RoslynCodeTaskFactory_Tests.cs (36)
48using (TestEnvironment env = TestEnvironment.Create()) 96using (TestEnvironment env = TestEnvironment.Create()) 216using var env = TestEnvironment.Create(); 303using (TestEnvironment env = TestEnvironment.Create()) 423using (TestEnvironment testEnvironment = TestEnvironment.Create()) 520using (TestEnvironment env = TestEnvironment.Create()) 537using (TestEnvironment testEnvironment = TestEnvironment.Create()) 553using (TestEnvironment testEnvironment = TestEnvironment.Create()) 729using (TestEnvironment testEnvironment = TestEnvironment.Create()) 775using (TestEnvironment env = TestEnvironment.Create()) 895using var env = TestEnvironment.Create(); 1104using (TestEnvironment env = TestEnvironment.Create()) 1174using (TestEnvironment env = TestEnvironment.Create()) 1272using (TestEnvironment env = TestEnvironment.Create()) 1319using (TestEnvironment env = TestEnvironment.Create()) 1367using (TestEnvironment env = TestEnvironment.Create()) 1451using (TestEnvironment env = TestEnvironment.Create()) 1490using (TestEnvironment env = TestEnvironment.Create())
SGen_Tests.cs (2)
21using (TestEnvironment testenv = TestEnvironment.Create())
TaskFactoryUtilities_Tests.cs (2)
34using (var env = TestEnvironment.Create())
TestAssemblyInfo.cs (4)
35private TestEnvironment _testEnvironment; 64_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 128private TestEnvironment _testEnvironment; 132_testEnvironment = TestEnvironment.Create();
Unzip_Tests.cs (28)
25using (TestEnvironment testEnvironment = TestEnvironment.Create()) 54using (TestEnvironment testEnvironment = TestEnvironment.Create()) 111using (TestEnvironment testEnvironment = TestEnvironment.Create()) 184using (TestEnvironment testEnvironment = TestEnvironment.Create()) 213using (TestEnvironment testEnvironment = TestEnvironment.Create()) 236using (TestEnvironment testEnvironment = TestEnvironment.Create()) 257using (TestEnvironment testEnvironment = TestEnvironment.Create()) 287using (TestEnvironment testEnvironment = TestEnvironment.Create()) 317using (TestEnvironment testEnvironment = TestEnvironment.Create()) 355using (TestEnvironment testEnvironment = TestEnvironment.Create()) 384using (TestEnvironment testEnvironment = TestEnvironment.Create()) 413using (TestEnvironment testEnvironment = TestEnvironment.Create()) 442using (TestEnvironment testEnvironment = TestEnvironment.Create()) 471using TestEnvironment testEnvironment = TestEnvironment.Create();
WriteCodeFragment_Tests.cs (10)
107using TestEnvironment env = TestEnvironment.Create(); 130using TestEnvironment env = TestEnvironment.Create(); 150using TestEnvironment env = TestEnvironment.Create(); 409using TestEnvironment env = TestEnvironment.Create(); 430using TestEnvironment env = TestEnvironment.Create();
WriteLinesToFile_Tests.cs (14)
173using TestEnvironment testEnv = TestEnvironment.Create(_output); 317using (var testEnv = TestEnvironment.Create()) 346using (var testEnv = TestEnvironment.Create()) 374using (var testEnv = TestEnvironment.Create()) 397using (var testEnv = TestEnvironment.Create(_output)) 458using (var testEnv = TestEnvironment.Create(_output)) 535using (var testEnv = TestEnvironment.Create(_output))
ZipDirectory_Tests.cs (6)
40using (TestEnvironment testEnvironment = TestEnvironment.Create()) 99using (TestEnvironment testEnvironment = TestEnvironment.Create()) 141using (TestEnvironment testEnvironment = TestEnvironment.Create())
Microsoft.Build.UnitTests.Shared (17)
ObjectModelHelpers.cs (13)
139using (var env = TestEnvironment.Create()) 1413using (var env = TestEnvironment.Create()) 1468using (var env = TestEnvironment.Create(testOutput)) 1482public static void ResetStateForDriveEnumeratingWildcardTests(TestEnvironment env, string setEnvVar) 1489public static void BuildTargetWithDriveEnumeratingWildcardUsingBuildManager(TestEnvironment env, string testProjectFile, string targetName, ExpectedBuildResult expectedBuildResult, ITestOutputHelper testOutput = null) 1697TestEnvironment env, 1705TestEnvironment env, 1755TestEnvironment env, 2075private readonly TestEnvironment _env; 2082TestEnvironment env,
RunnerUtilities.cs (1)
40public static void ApplyDotnetHostPathEnvironmentVariable(TestEnvironment testEnvironment)
TestEnvironment.cs (3)
64public static TestEnvironment Create(ITestOutputHelper output = null, bool ignoreBuildErrorFiles = false) 66var env = new TestEnvironment(output ?? new DefaultOutput()); 874public TransientPrintLineDebugger(TestEnvironment environment, CommonWriterType writer)
Microsoft.Build.Utilities.UnitTests (44)
EncodingUtilities_Tests.cs (2)
45using TestEnvironment testEnvironment = TestEnvironment.Create();
PrintLineDebugger_Tests.cs (8)
112using (var env = TestEnvironment.Create()) 204using (var env = TestEnvironment.Create()) 226using (var env = TestEnvironment.Create()) 248using (var env = TestEnvironment.Create())
TestAssemblyInfo.cs (4)
35private TestEnvironment _testEnvironment; 64_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 128private TestEnvironment _testEnvironment; 132_testEnvironment = TestEnvironment.Create();
ToolLocationHelper_Tests.cs (20)
2497using (var env = TestEnvironment.Create()) 2526using (var env = TestEnvironment.Create()) 2549using (var env = TestEnvironment.Create()) 2582using (var env = TestEnvironment.Create()) 2595using (var env = TestEnvironment.Create()) 2612using (var env = TestEnvironment.Create()) 2629using (var env = TestEnvironment.Create()) 2644using (var env = TestEnvironment.Create()) 2661using (var env = TestEnvironment.Create()) 2673private void CheckGetPathToReferenceAssemblies(TestEnvironment env, string customFrameworkDir, string fallbackSearchPaths, Func<string, string, string, string, string, IList<string>> getPathToReferenceAssemblies) 2715private static string CreateNewFrameworkAndGetAssembliesPath(TestEnvironment env, string frameworkName, string frameworkVersion, string rootDir)
ToolTask_Tests.cs (10)
724using (var env = TestEnvironment.Create()) 855using (TestEnvironment testEnvironment = TestEnvironment.Create()) 911using TestEnvironment testEnvironment = TestEnvironment.Create(_output); 979using var env = TestEnvironment.Create(_output); 1010using var env = TestEnvironment.Create(_output);