1 instantiation of TestEnvironment
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
66var env = new TestEnvironment(output ?? new DefaultOutput());
1190 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)
24private readonly TestEnvironment _env; 30_env = TestEnvironment.Create(output); 670using (var env = TestEnvironment.Create()) 850using (var env = TestEnvironment.Create()) 883using (var env = TestEnvironment.Create()) 911using (var env = TestEnvironment.Create())
TaskInvocationAnalysisDataTests.cs (2)
82using (var env = TestEnvironment.Create(_output))
TestAssemblyInfo.cs (4)
138using var _ = TestEnvironment.Create(); 179private TestEnvironment _testEnvironment; 208_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true);
Microsoft.Build.CommandLine.UnitTests (58)
CommandLineSwitches_Tests.cs (6)
1133using (TestEnvironment env = TestEnvironment.Create()) 1421using (TestEnvironment env = TestEnvironment.Create()) 1602using TestEnvironment testEnvironment = TestEnvironment.Create();
MSBuildMultithreaded_Tests.cs (2)
114private readonly TestEnvironment _env; 119_env = TestEnvironment.Create(output);
MSBuildServer_Tests.cs (2)
61private readonly TestEnvironment _env; 85_env = TestEnvironment.Create(_output);
PerfLog_Tests.cs (4)
25using (TestEnvironment testEnv = TestEnvironment.Create(_output)) 60using (TestEnvironment testEnv = TestEnvironment.Create(_output))
TestAssemblyInfo.cs (4)
138using var _ = TestEnvironment.Create(); 179private TestEnvironment _testEnvironment; 208_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true);
XMake_BinlogSwitch_Tests.cs (2)
23private readonly TestEnvironment _env; 28_env = TestEnvironment.Create(output);
XMake_Tests.cs (38)
77private readonly TestEnvironment _env; 82_env = TestEnvironment.Create(_output); 554using TestEnvironment env = TestEnvironment.Create(); 594using TestEnvironment env = TestEnvironment.Create(); 777using TestEnvironment env = TestEnvironment.Create(); 813using TestEnvironment env = TestEnvironment.Create(); 867using TestEnvironment env = TestEnvironment.Create(); 886using TestEnvironment env = TestEnvironment.Create(); 920using TestEnvironment env = TestEnvironment.Create(); 948using TestEnvironment env = TestEnvironment.Create(); 1010using TestEnvironment testEnvironment = TestEnvironment.Create(); 1220using TestEnvironment testEnvironment = TestEnvironment.Create(); 1368using (TestEnvironment env = TestEnvironment.Create()) 2661using (var env = TestEnvironment.Create()) 2688using (var env = TestEnvironment.Create()) 2991using TestEnvironment testEnvironment = TestEnvironment.Create(); 3023using TestEnvironment testEnvironment = TestEnvironment.Create(); 3047using var testEnvironment = TestEnvironment.Create(); 3091using TestEnvironment testEnvironment = TestEnvironment.Create(); 3135using 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)
1442using (var env = TestEnvironment.Create()) 1507using (var env = TestEnvironment.Create()) 1593using (var env = TestEnvironment.Create()) 3249using (var env = TestEnvironment.Create()) 3277using (var env = TestEnvironment.Create()) 3570using (var env = TestEnvironment.Create()) 3763using (var env = TestEnvironment.Create()) 3840using (var env = TestEnvironment.Create()) 3859using (var env = TestEnvironment.Create()) 3888using (var env = TestEnvironment.Create(_output)) 3931using (var env = TestEnvironment.Create(_output)) 3970using (var env = TestEnvironment.Create(_output)) 4015using (var env = TestEnvironment.Create(_output)) 4062using (var env = TestEnvironment.Create(_output)) 4102using (var env = TestEnvironment.Create(_output)) 4145using (var env = TestEnvironment.Create(_output)) 4190using (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)
38using TestEnvironment testEnvironment = TestEnvironment.Create();
TestAssemblyInfo.cs (4)
138using var _ = TestEnvironment.Create(); 179private TestEnvironment _testEnvironment; 208_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true);
Microsoft.Build.Engine.UnitTests (665)
BackEnd\AppHostSupport_Tests.cs (6)
88using (TestEnvironment env = TestEnvironment.Create(_output)) 113using (TestEnvironment env = TestEnvironment.Create(_output)) 141using (TestEnvironment env = TestEnvironment.Create(_output))
BackEnd\AssemblyTaskFactory_E2E_Tests.cs (4)
30using TestEnvironment env = TestEnvironment.Create(_output); 51using TestEnvironment env = TestEnvironment.Create(_output);
BackEnd\BuildManager_Logging_Tests.cs (2)
60private readonly TestEnvironment _env; 74_env = TestEnvironment.Create(output);
BackEnd\BuildManager_Tests.cs (8)
59private readonly TestEnvironment _env; 86_env = TestEnvironment.Create(output); 3731using (var env = TestEnvironment.Create()) 4068using (var env = TestEnvironment.Create(_output)) 4120using (var env = TestEnvironment.Create())
BackEnd\BuildRequestConfiguration_Tests.cs (2)
26private TestEnvironment _env; 30_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)
48using TestEnvironment env = TestEnvironment.Create(); 82using TestEnvironment env = TestEnvironment.Create(); 116using (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 (10)
779using TestEnvironment env = TestEnvironment.Create(); 810using TestEnvironment env = TestEnvironment.Create(); 854using TestEnvironment env = TestEnvironment.Create(); 2014using TestEnvironment env = TestEnvironment.Create(_testOutput); 2083using TestEnvironment env = TestEnvironment.Create(_testOutput);
BackEnd\ResultsCache_Tests.cs (2)
402using (var env = TestEnvironment.Create())
BackEnd\SdkResolverLoader_Tests.cs (16)
217using (var env = TestEnvironment.Create(_output)) 242using (var env = TestEnvironment.Create(_output)) 269using (var env = TestEnvironment.Create(_output)) 293using (var env = TestEnvironment.Create(_output)) 309using (var env = TestEnvironment.Create(_output)) 333using (var env = TestEnvironment.Create(_output)) 361using (var env = TestEnvironment.Create(_output)) 407using (var env = TestEnvironment.Create(_output))
BackEnd\SdkResultOutOfProc_Tests.cs (2)
42private readonly TestEnvironment _env; 53_env = TestEnvironment.Create(output);
BackEnd\TargetBuilder_Tests.cs (4)
221using (var env = TestEnvironment.Create()) 258using (var env = TestEnvironment.Create())
BackEnd\TargetEntry_Tests.cs (2)
645using (var env = TestEnvironment.Create(_output))
BackEnd\TaskBuilder_Tests.cs (6)
78using TestEnvironment env = TestEnvironment.Create(); 130using (TestEnvironment env = TestEnvironment.Create(_testOutput)) 644using var env = TestEnvironment.Create();
BackEnd\TaskExecutionHost_Tests.cs (2)
1066using TestEnvironment env = TestEnvironment.Create();
BackEnd\TaskHost_MultiThreadableTask_Tests.cs (2)
25private readonly TestEnvironment _env; 31_env = TestEnvironment.Create(output);
BackEnd\TaskHostCallback_Tests.cs (24)
40using TestEnvironment env = TestEnvironment.Create(_output); 71using TestEnvironment env = TestEnvironment.Create(_output); 115using TestEnvironment env = TestEnvironment.Create(_output); 146using TestEnvironment env = TestEnvironment.Create(_output); 178using TestEnvironment env = TestEnvironment.Create(_output); 224using TestEnvironment env = TestEnvironment.Create(_output); 279using TestEnvironment env = TestEnvironment.Create(_output); 328using TestEnvironment env = TestEnvironment.Create(_output); 367using TestEnvironment env = TestEnvironment.Create(_output); 405using TestEnvironment env = TestEnvironment.Create(_output); 452using TestEnvironment env = TestEnvironment.Create(_output); 491using TestEnvironment env = TestEnvironment.Create(_output);
BackEnd\TaskHostFactory_Tests.cs (8)
51using (TestEnvironment env = TestEnvironment.Create()) 158using (TestEnvironment env = TestEnvironment.Create(_output)) 225using TestEnvironment env = TestEnvironment.Create(_output); 376using TestEnvironment env = TestEnvironment.Create();
BackEnd\TaskRegistry_Tests.cs (2)
612using (var env = TestEnvironment.Create(_output))
BackEnd\TaskRouter_IntegrationTests.cs (2)
30private readonly TestEnvironment _env; 36_env = TestEnvironment.Create(output);
BinaryLogger_Tests.cs (14)
75private readonly TestEnvironment _env; 80_env = TestEnvironment.Create(output); 112using var env = TestEnvironment.Create(); 331using (TestEnvironment env = TestEnvironment.Create()) 376using (TestEnvironment env = TestEnvironment.Create()) 598using var env = TestEnvironment.Create(); 642using (TestEnvironment env = TestEnvironment.Create()) 757using (TestEnvironment env = TestEnvironment.Create())
ChangeWaves_Tests.cs (18)
29private void SetChangeWave(string wave, TestEnvironment env) 44private void buildSimpleProjectAndValidateChangeWave(TestEnvironment testEnvironment, Version versionToCheckAgainstCurrentChangeWave, Version currentChangeWaveShouldUltimatelyResolveTo, params string[] warningCodesLogShouldContain) 80using (TestEnvironment env = TestEnvironment.Create()) 101using (TestEnvironment env = TestEnvironment.Create()) 122using (TestEnvironment env = TestEnvironment.Create()) 139using (TestEnvironment env = TestEnvironment.Create()) 159using (TestEnvironment env = TestEnvironment.Create()) 183using (TestEnvironment env = TestEnvironment.Create()) 197using (TestEnvironment env = TestEnvironment.Create()) 220using (TestEnvironment env = TestEnvironment.Create())
CLR2TaskHost_E2E_Tests.cs (2)
41using TestEnvironment env = TestEnvironment.Create(_output);
ConsoleLogger_Tests.cs (6)
188using var env = TestEnvironment.Create(_output); 228using var env = TestEnvironment.Create(_output); 271using 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)
132using (TestEnvironment testEnvironment = TestEnvironment.Create())
Construction\SolutionFile_OldParser_Tests.cs (4)
295using (var env = TestEnvironment.Create()) 771using (var env = TestEnvironment.Create())
Construction\SolutionFilter_Tests.cs (10)
50using (TestEnvironment testEnvironment = TestEnvironment.Create()) 210using (TestEnvironment testEnvironment = TestEnvironment.Create()) 228using (TestEnvironment testEnvironment = TestEnvironment.Create()) 289using TestEnvironment testEnvironment = TestEnvironment.Create(); 391using TestEnvironment testEnvironment = TestEnvironment.Create();
Construction\SolutionProjectGenerator_Tests.cs (45)
66using (TestEnvironment testEnvironment = TestEnvironment.Create()) 95using (TestEnvironment testEnvironment = TestEnvironment.Create()) 118using (TestEnvironment testEnvironment = TestEnvironment.Create()) 163using (TestEnvironment testEnvironment = TestEnvironment.Create()) 238using (TestEnvironment testEnvironment = TestEnvironment.Create()) 399using (TestEnvironment testEnvironment = TestEnvironment.Create()) 440using (TestEnvironment testEnvironment = TestEnvironment.Create()) 517using (TestEnvironment testEnvironment = TestEnvironment.Create()) 558using (TestEnvironment testEnvironment = TestEnvironment.Create()) 925using (TestEnvironment env = TestEnvironment.Create()) 1316using (TestEnvironment testEnvironment = TestEnvironment.Create()) 1388using (TestEnvironment testEnvironment = TestEnvironment.Create()) 1584using (TestEnvironment testEnvironment = TestEnvironment.Create()) 1958using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2019using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2108using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2371using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2429using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2488using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2541using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2919using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2971using (TestEnvironment testEnvironment = TestEnvironment.Create()) 2977private 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 (89)
2634using (var env = TestEnvironment.Create()) 4889using (var env = TestEnvironment.Create()) 4933using (var env = TestEnvironment.Create()) 4968using (var env = TestEnvironment.Create()) 5008using (var env = TestEnvironment.Create()) 5049using (var env = TestEnvironment.Create()) 5089using (var env = TestEnvironment.Create()) 5132using (var env = TestEnvironment.Create()) 5179using (var env = TestEnvironment.Create()) 5210using (var env = TestEnvironment.Create()) 5239using (var env = TestEnvironment.Create()) 5279using (var env = TestEnvironment.Create()) 5353private string ExpandWithThreadWorkingDirectory(TestEnvironment env, string expression, string workingDir, string wrongDir = null) 5373using var env = TestEnvironment.Create(_output); 5389using var env = TestEnvironment.Create(_output); 5405using var env = TestEnvironment.Create(_output); 5423using var env = TestEnvironment.Create(_output); 5440using var env = TestEnvironment.Create(_output); 5457using var env = TestEnvironment.Create(_output); 5478using var env = TestEnvironment.Create(_output); 5494using var env = TestEnvironment.Create(_output); 5510using var env = TestEnvironment.Create(_output); 5528using var env = TestEnvironment.Create(_output); 5543using var env = TestEnvironment.Create(_output); 5560using var env = TestEnvironment.Create(_output); 5581using var env = TestEnvironment.Create(_output); 5598using var env = TestEnvironment.Create(_output); 5614using var env = TestEnvironment.Create(_output); 5630using var env = TestEnvironment.Create(_output); 5646using var env = TestEnvironment.Create(_output); 5666using var env = TestEnvironment.Create(_output); 5684using var env = TestEnvironment.Create(_output); 5702using var env = TestEnvironment.Create(_output); 5724using var env = TestEnvironment.Create(_output); 5739using var env = TestEnvironment.Create(_output); 5761using var env = TestEnvironment.Create(_output); 5777using var env = TestEnvironment.Create(_output); 5792using var env = TestEnvironment.Create(_output); 5811using var env = TestEnvironment.Create(_output); 5828using var env = TestEnvironment.Create(_output); 5848using var env = TestEnvironment.Create(_output); 5866using var env = TestEnvironment.Create(_output); 5884using var env = TestEnvironment.Create(_output); 5905using var env = TestEnvironment.Create(_output); 5929using var env = TestEnvironment.Create(_output);
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)
24private TestEnvironment _env; 35_env = TestEnvironment.Create();
EvaluationProfiler_Tests.cs (2)
27private readonly TestEnvironment _env; 61_env = TestEnvironment.Create(output);
FileLogger_Tests.cs (4)
357using (var env = TestEnvironment.Create()) 393using (var testEnvironment = 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)
25private TestEnvironment _env; 29_env = TestEnvironment.Create(output);
Graph\GraphTestingUtilities.cs (1)
197TestEnvironment env,
Graph\IsolateProjects_Tests.cs (3)
129private TestEnvironment _env; 135_env = TestEnvironment.Create(_testOutput, ignoreBuildErrorFiles: true); 557TransientTestFile CreateTmpFile(TestEnvironment env)
Graph\ProjectGraph_Tests.cs (94)
30private TestEnvironment _env; 44_env = TestEnvironment.Create(outputHelper); 62using (var env = TestEnvironment.Create()) 89using (var env = TestEnvironment.Create()) 100using (var env = TestEnvironment.Create()) 132using (var env = TestEnvironment.Create()) 179using (var env = TestEnvironment.Create()) 203using (var env = TestEnvironment.Create()) 225using (var env = TestEnvironment.Create()) 249using (var env = TestEnvironment.Create()) 303using (var env = TestEnvironment.Create()) 317using (var env = TestEnvironment.Create()) 330using (var env = TestEnvironment.Create()) 387using (var env = TestEnvironment.Create()) 420using (var env = TestEnvironment.Create()) 439using (var env = TestEnvironment.Create()) 479using (var env = TestEnvironment.Create()) 510using (var env = TestEnvironment.Create()) 552using (var env = TestEnvironment.Create()) 573using (var env = TestEnvironment.Create()) 594using (var env = TestEnvironment.Create()) 628using (var env = TestEnvironment.Create()) 665using (var env = TestEnvironment.Create()) 696using (var env = TestEnvironment.Create()) 917using (var env = TestEnvironment.Create()) 946using (var env = TestEnvironment.Create()) 974using (var env = TestEnvironment.Create()) 1000using (var env = TestEnvironment.Create()) 1018using (var env = TestEnvironment.Create()) 1036using (var env = TestEnvironment.Create()) 1059using (var env = TestEnvironment.Create()) 1082using (var env = TestEnvironment.Create()) 1097using (var env = TestEnvironment.Create()) 1126using (var env = TestEnvironment.Create()) 1167using (var env = TestEnvironment.Create()) 1283using (var env = TestEnvironment.Create()) 1389using (var env = TestEnvironment.Create()) 1407using (var env = TestEnvironment.Create()) 1437using (var env = TestEnvironment.Create()) 1471using (var env = TestEnvironment.Create()) 1628using (var env = TestEnvironment.Create()) 1809using (var env = TestEnvironment.Create()) 2325using (var env = TestEnvironment.Create()) 2344using (var env = TestEnvironment.Create()) 2833using (var env = TestEnvironment.Create()) 2889using (var env = TestEnvironment.Create()) 2930using var env = TestEnvironment.Create(); 2959using var env = TestEnvironment.Create();
Graph\ResultCacheBasedBuilds_Tests.cs (5)
31_env = TestEnvironment.Create(_output); 42private readonly TestEnvironment _env; 422TestEnvironment env, 510private static TransientTestFile CreateProjectFileWrapper(TestEnvironment env, int projectNumber, int[] projectReferences, Dictionary<string, string[]> projectReferenceTargets, string defaultTargets, string extraContent) 516TestEnvironment env,
Instance\ProjectInstance_Internal_Tests.cs (6)
761using (var env = TestEnvironment.Create()) 889using (TestEnvironment testEnvironment = TestEnvironment.Create()) 917using (TestEnvironment testEnvironment = TestEnvironment.Create())
MSBuildTaskHostTests.cs (2)
23private readonly TestEnvironment _environment = TestEnvironment.Create(testOutput);
NetTaskHost_E2E_Tests.cs (24)
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); 256using TestEnvironment env = TestEnvironment.Create(_output); 285using TestEnvironment env = TestEnvironment.Create(_output); 304using TestEnvironment env = TestEnvironment.Create(_output); 349using 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)
36_env = TestEnvironment.Create(output); 124public ProjectGraph CreateGraph(TestEnvironment env) 345private readonly TestEnvironment _env;
SolutionFileBuilder.cs (1)
79TestEnvironment env,
TaskHostFactoryLifecycle_E2E_Tests.cs (2)
64using TestEnvironment env = TestEnvironment.Create(_output);
Telemetry\Telemetry_Tests.cs (4)
242using TestEnvironment env = TestEnvironment.Create(); 280using var testEnv = TestEnvironment.Create(_output);
TerminalLogger_Tests.cs (6)
213using TestEnvironment testEnvironment = TestEnvironment.Create(); 895using (TestEnvironment env = TestEnvironment.Create()) 1026using (TestEnvironment env = TestEnvironment.Create())
TerminalLoggerConfiguration_Tests.cs (2)
22private readonly TestEnvironment _env; 28_env = TestEnvironment.Create(output);
TestAssemblyInfo.cs (4)
138using var _ = TestEnvironment.Create(); 179private TestEnvironment _testEnvironment; 208_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true);
TypeLoader_Tests.cs (2)
99using (TestEnvironment env = TestEnvironment.Create())
Utilities_Tests.cs (2)
71using TestEnvironment env = TestEnvironment.Create();
WarningsAsMessagesAndErrors_Tests.cs (36)
49using (TestEnvironment testEnvironment = TestEnvironment.Create(_output)) 143using (TestEnvironment testEnvironment = TestEnvironment.Create(_output)) 292using (TestEnvironment env = TestEnvironment.Create(_output)) 324using (TestEnvironment env = TestEnvironment.Create(_output)) 381using (TestEnvironment env = TestEnvironment.Create(_output)) 410using (TestEnvironment env = TestEnvironment.Create(_output)) 432using (TestEnvironment env = TestEnvironment.Create(_output)) 457using (TestEnvironment env = TestEnvironment.Create(_output)) 479using (TestEnvironment env = TestEnvironment.Create(_output)) 499using (TestEnvironment env = TestEnvironment.Create(_output)) 519using (TestEnvironment env = TestEnvironment.Create(_output)) 542using (TestEnvironment env = TestEnvironment.Create(_output)) 573using (TestEnvironment env = TestEnvironment.Create(_output)) 612using (TestEnvironment env = TestEnvironment.Create(_output)) 649using (TestEnvironment env = TestEnvironment.Create(_output)) 690using TestEnvironment env = TestEnvironment.Create(_output); 717using TestEnvironment env = TestEnvironment.Create(_output); 743using TestEnvironment env = TestEnvironment.Create(_output);
Microsoft.Build.Framework.UnitTests (16)
FileMatcher_Tests.cs (12)
23private readonly TestEnvironment _env; 28_env = TestEnvironment.Create(output); 1102using (var env = TestEnvironment.Create()) 1183using (var env = TestEnvironment.Create()) 1307using (var env = TestEnvironment.Create()) 1373using (var env = TestEnvironment.Create()) 1412using (var env = TestEnvironment.Create())
TestAssemblyInfo.cs (4)
138using var _ = TestEnvironment.Create(); 179private TestEnvironment _testEnvironment; 208_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true);
Microsoft.Build.Tasks.UnitTests (257)
AddToWin32Manifest_Tests.cs (4)
41using (TestEnvironment env = TestEnvironment.Create()) 79using (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)
138using (var env = TestEnvironment.Create()) 163using (var env = TestEnvironment.Create()) 189using (var env = TestEnvironment.Create()) 234using (var env = TestEnvironment.Create()) 258using (var env = TestEnvironment.Create()) 290using (var env = TestEnvironment.Create()) 315using (var env = TestEnvironment.Create()) 340using (var env = TestEnvironment.Create()) 364using (var env = TestEnvironment.Create()) 389using (var env = TestEnvironment.Create()) 414using (var env = TestEnvironment.Create()) 440using (var env = TestEnvironment.Create()) 467using (var env = TestEnvironment.Create()) 1118using (var env = TestEnvironment.Create()) 2572using (var env = TestEnvironment.Create()) 2998using TestEnvironment env = TestEnvironment.Create();
CreateCSharpManifestResourceName_Tests.cs (14)
383using (var env = TestEnvironment.Create(_testOutput)) 415using (var env = TestEnvironment.Create()) 453using (var env = TestEnvironment.Create()) 486using (var env = TestEnvironment.Create()) 520using (var env = TestEnvironment.Create()) 551using (var env = TestEnvironment.Create()) 585using (var env = TestEnvironment.Create(_testOutput))
CreateItem_Tests.cs (6)
188using var env = TestEnvironment.Create(_testOutput); 291using (var env = TestEnvironment.Create()) 343using (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)
58using (var testEnvironment = TestEnvironment.Create()) 76using (var env = TestEnvironment.Create()) 114using (var testEnvironment = TestEnvironment.Create()) 553using (TestEnvironment testEnvironment = TestEnvironment.Create()) 953using (var env = TestEnvironment.Create(_output)) 1006using (var env = TestEnvironment.Create(_output)) 1058using (var env = TestEnvironment.Create(_output))
FindUnderPath_Tests.cs (4)
47using TestEnvironment env = TestEnvironment.Create(); 76using TestEnvironment env = TestEnvironment.Create();
GenerateBindingRedirects_Tests.cs (4)
22private readonly TestEnvironment _env; 27_env = TestEnvironment.Create(output); 264using (TestEnvironment env = TestEnvironment.Create())
GetSDKReference_Tests.cs (2)
273using (TestEnvironment env = TestEnvironment.Create())
HintPathResolver_Tests.cs (2)
18private readonly TestEnvironment _env; 22_env = TestEnvironment.Create(testOutput);
MSBuildInternalMessage_Tests.cs (10)
24using (TestEnvironment env = TestEnvironment.Create()) 69using (TestEnvironment env = TestEnvironment.Create()) 115using (TestEnvironment env = TestEnvironment.Create()) 193using (TestEnvironment env = TestEnvironment.Create()) 247using (TestEnvironment env = TestEnvironment.Create())
PortableTasks_Tests.cs (2)
45using (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)
50using (TestEnvironment env = TestEnvironment.Create(_output)) 102using (TestEnvironment env = TestEnvironment.Create(_output))
ResolveAssemblyReference_CustomCultureTests.cs (2)
40using (TestEnvironment env = TestEnvironment.Create(_output))
ResourceHandling\GenerateResource_Tests.cs (11)
24private readonly TestEnvironment _env; 29_env = TestEnvironment.Create(output); 2267using TestEnvironment env = TestEnvironment.Create(); 2343using var env = TestEnvironment.Create(_output); 3934using (var env = TestEnvironment.Create()) 4183TestEnvironment env = null, 4384public static string WriteTestResX(bool useType, string linkedBitmap, string extraToken, string resxFileToWrite = null, TestEnvironment env = null, bool includeDefaultString = true) 4395public 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)
153using (var env = TestEnvironment.Create(_output)) 300using var env = TestEnvironment.Create(_output);
ResourceManagement_Tests.cs (2)
145using var env = TestEnvironment.Create();
RoslynCodeTaskFactory_Tests.cs (38)
50using (TestEnvironment env = TestEnvironment.Create()) 98using (TestEnvironment env = TestEnvironment.Create()) 224using var env = TestEnvironment.Create(); 311using (TestEnvironment env = TestEnvironment.Create()) 431using (TestEnvironment testEnvironment = TestEnvironment.Create()) 528using (TestEnvironment env = TestEnvironment.Create()) 545using (TestEnvironment testEnvironment = TestEnvironment.Create()) 561using (TestEnvironment testEnvironment = TestEnvironment.Create()) 737using (TestEnvironment testEnvironment = TestEnvironment.Create()) 783using (TestEnvironment env = TestEnvironment.Create()) 827using TestEnvironment env = TestEnvironment.Create(_testOutput); 946using var env = TestEnvironment.Create(); 1155using (TestEnvironment env = TestEnvironment.Create()) 1225using (TestEnvironment env = TestEnvironment.Create()) 1323using (TestEnvironment env = TestEnvironment.Create()) 1370using (TestEnvironment env = TestEnvironment.Create()) 1418using (TestEnvironment env = TestEnvironment.Create()) 1502using (TestEnvironment env = TestEnvironment.Create()) 1541using (TestEnvironment env = TestEnvironment.Create())
SGen_Tests.cs (2)
31using TestEnvironment testenv = TestEnvironment.Create(_output);
TaskFactoryUtilities_Tests.cs (2)
34using (var env = TestEnvironment.Create())
TestAssemblyInfo.cs (4)
138using var _ = TestEnvironment.Create(); 179private TestEnvironment _testEnvironment; 208_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true);
Unzip_Tests.cs (28)
25using (TestEnvironment testEnvironment = TestEnvironment.Create()) 54using (TestEnvironment testEnvironment = TestEnvironment.Create()) 111using (TestEnvironment testEnvironment = TestEnvironment.Create()) 189using (TestEnvironment testEnvironment = TestEnvironment.Create()) 218using (TestEnvironment testEnvironment = TestEnvironment.Create()) 241using (TestEnvironment testEnvironment = TestEnvironment.Create()) 262using (TestEnvironment testEnvironment = TestEnvironment.Create()) 292using (TestEnvironment testEnvironment = TestEnvironment.Create()) 322using (TestEnvironment testEnvironment = TestEnvironment.Create()) 360using (TestEnvironment testEnvironment = TestEnvironment.Create()) 389using (TestEnvironment testEnvironment = TestEnvironment.Create()) 418using (TestEnvironment testEnvironment = TestEnvironment.Create()) 447using (TestEnvironment testEnvironment = TestEnvironment.Create()) 476using 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)
172using TestEnvironment testEnv = TestEnvironment.Create(_output); 316using (var testEnv = TestEnvironment.Create()) 345using (var testEnv = TestEnvironment.Create()) 373using (var testEnv = TestEnvironment.Create()) 396using (var testEnv = TestEnvironment.Create(_output)) 457using (var testEnv = TestEnvironment.Create(_output)) 534using (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)
138using (var env = TestEnvironment.Create()) 1412using (var env = TestEnvironment.Create()) 1467using (var env = TestEnvironment.Create(testOutput)) 1481public static void ResetStateForDriveEnumeratingWildcardTests(TestEnvironment env, string setEnvVar) 1488public static void BuildTargetWithDriveEnumeratingWildcardUsingBuildManager(TestEnvironment env, string testProjectFile, string targetName, ExpectedBuildResult expectedBuildResult, ITestOutputHelper testOutput = null) 1696TestEnvironment env, 1704TestEnvironment env, 1754TestEnvironment env, 2074private readonly TestEnvironment _env; 2081TestEnvironment 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()); 883public TransientPrintLineDebugger(TestEnvironment environment, CommonWriterType writer)
Microsoft.Build.Utilities.UnitTests (50)
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)
138using var _ = TestEnvironment.Create(); 179private TestEnvironment _testEnvironment; 208_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true);
ToolLocationHelper_Tests.cs (20)
2496using (var env = TestEnvironment.Create()) 2525using (var env = TestEnvironment.Create()) 2548using (var env = TestEnvironment.Create()) 2581using (var env = TestEnvironment.Create()) 2594using (var env = TestEnvironment.Create()) 2611using (var env = TestEnvironment.Create()) 2628using (var env = TestEnvironment.Create()) 2643using (var env = TestEnvironment.Create()) 2660using (var env = TestEnvironment.Create()) 2672private void CheckGetPathToReferenceAssemblies(TestEnvironment env, string customFrameworkDir, string fallbackSearchPaths, Func<string, string, string, string, string, IList<string>> getPathToReferenceAssemblies) 2714private static string CreateNewFrameworkAndGetAssembliesPath(TestEnvironment env, string frameworkName, string frameworkVersion, string rootDir)
ToolTask_Tests.cs (16)
725using (var env = TestEnvironment.Create()) 857using (TestEnvironment testEnvironment = TestEnvironment.Create()) 913using TestEnvironment testEnvironment = TestEnvironment.Create(_output); 981using var env = TestEnvironment.Create(_output); 1010using var env = TestEnvironment.Create(_output); 1456using var env = TestEnvironment.Create(_output); 1486using var env = TestEnvironment.Create(_output); 1558using var env = TestEnvironment.Create(_output);