1 instantiation of TestEnvironment
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
64var env = new TestEnvironment(output ?? new DefaultOutput());
1004 references to TestEnvironment
Microsoft.Build.BuildCheck.UnitTests (35)
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)
26private readonly TestEnvironment _env; 32_env = TestEnvironment.Create(output); 660using (var env = TestEnvironment.Create()) 840using (var env = TestEnvironment.Create()) 873using (var env = TestEnvironment.Create()) 901using (var env = TestEnvironment.Create())
TaskInvocationAnalysisDataTests.cs (2)
83using (var env = TestEnvironment.Create(_output))
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 62_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 115private static void SetDotnetHostPath(TestEnvironment testEnvironment) 167private TestEnvironment _testEnvironment; 171_testEnvironment = TestEnvironment.Create();
Microsoft.Build.CommandLine.UnitTests (53)
CommandLineSwitches_Tests.cs (6)
1125using (TestEnvironment env = TestEnvironment.Create()) 1408using (TestEnvironment env = TestEnvironment.Create()) 1548using TestEnvironment testEnvironment = TestEnvironment.Create();
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 (5)
33private TestEnvironment _testEnvironment; 62_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 115private static void SetDotnetHostPath(TestEnvironment testEnvironment) 167private TestEnvironment _testEnvironment; 171_testEnvironment = TestEnvironment.Create();
XMake_Tests.cs (36)
83private readonly TestEnvironment _env; 88_env = TestEnvironment.Create(_output); 572using TestEnvironment env = TestEnvironment.Create(); 616using TestEnvironment env = TestEnvironment.Create(); 746using TestEnvironment env = TestEnvironment.Create(); 782using TestEnvironment env = TestEnvironment.Create(); 836using TestEnvironment env = TestEnvironment.Create(); 855using TestEnvironment env = TestEnvironment.Create(); 885using TestEnvironment env = TestEnvironment.Create(); 947using TestEnvironment testEnvironment = TestEnvironment.Create(); 1157using TestEnvironment testEnvironment = TestEnvironment.Create(); 1299using (TestEnvironment env = TestEnvironment.Create()) 2554using (var env = TestEnvironment.Create()) 2581using (var env = TestEnvironment.Create()) 2774using TestEnvironment testEnvironment = TestEnvironment.Create(); 2806using TestEnvironment testEnvironment = TestEnvironment.Create(); 2830using var testEnvironment = TestEnvironment.Create(); 2874using TestEnvironment testEnvironment = TestEnvironment.Create(); 2918using TestEnvironment testEnvironment = TestEnvironment.Create();
Microsoft.Build.Engine.OM.UnitTests (94)
Construction\ConstructionEditing_Tests.cs (2)
3208using (var env = TestEnvironment.Create())
Construction\ProjectRootElement_Tests.cs (8)
1286using (var env = TestEnvironment.Create()) 1325using (var env = TestEnvironment.Create()) 1587using (var env = TestEnvironment.Create()) 1727using (var env = TestEnvironment.Create())
Construction\ProjectTargetElement_Tests.cs (2)
345using (TestEnvironment env = TestEnvironment.Create())
Construction\SolutionFile_Tests.cs (2)
710using (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 (5)
33private TestEnvironment _testEnvironment; 62_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 115private static void SetDotnetHostPath(TestEnvironment testEnvironment) 167private TestEnvironment _testEnvironment; 171_testEnvironment = TestEnvironment.Create();
Microsoft.Build.Engine.UnitTests (523)
BackEnd\BuildManager_Logging_Tests.cs (2)
61private readonly TestEnvironment _env; 75_env = TestEnvironment.Create(output);
BackEnd\BuildManager_Tests.cs (8)
59private readonly TestEnvironment _env; 86_env = TestEnvironment.Create(output); 3687using (var env = TestEnvironment.Create()) 4024using (var env = TestEnvironment.Create(_output)) 4076using (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\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 (14)
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))
BackEnd\SdkResultOutOfProc_Tests.cs (2)
43private readonly TestEnvironment _env; 54_env = TestEnvironment.Create(output);
BackEnd\TargetBuilder_Tests.cs (4)
216using (var env = TestEnvironment.Create()) 253using (var env = TestEnvironment.Create())
BackEnd\TargetEntry_Tests.cs (2)
641using (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)
1063using TestEnvironment env = TestEnvironment.Create();
BackEnd\TaskHostFactory_Tests.cs (6)
50using (TestEnvironment env = TestEnvironment.Create()) 157using (TestEnvironment env = TestEnvironment.Create(_output)) 224using TestEnvironment env = TestEnvironment.Create(_output);
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 (10)
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())
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())
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)
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 (8)
51using (TestEnvironment testEnvironment = TestEnvironment.Create()) 211using (TestEnvironment testEnvironment = TestEnvironment.Create()) 229using (TestEnvironment testEnvironment = TestEnvironment.Create()) 290using 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)
2590using (var env = TestEnvironment.Create()) 4806using (var env = TestEnvironment.Create()) 4850using (var env = TestEnvironment.Create()) 4885using (var env = TestEnvironment.Create()) 4925using (var env = TestEnvironment.Create()) 4966using (var env = TestEnvironment.Create()) 5006using (var env = TestEnvironment.Create()) 5049using (var env = TestEnvironment.Create()) 5095using (var env = TestEnvironment.Create()) 5126using (var env = TestEnvironment.Create()) 5155using (var env = TestEnvironment.Create()) 5195using (var env = TestEnvironment.Create())
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (2)
864using TestEnvironment testEnvironment = TestEnvironment.Create();
Evaluation\IntrinsicFunctionOverload_Tests.cs (46)
31using TestEnvironment env = TestEnvironment.Create(); 53using TestEnvironment env = TestEnvironment.Create(); 75using TestEnvironment env = TestEnvironment.Create(); 97using TestEnvironment env = TestEnvironment.Create(); 119using TestEnvironment env = TestEnvironment.Create(); 130using TestEnvironment env = TestEnvironment.Create(); 171using TestEnvironment env = TestEnvironment.Create(); 212using TestEnvironment env = TestEnvironment.Create(); 262using TestEnvironment env = TestEnvironment.Create(); 284using TestEnvironment env = TestEnvironment.Create(); 306using TestEnvironment env = TestEnvironment.Create(); 328using TestEnvironment env = TestEnvironment.Create(); 348using TestEnvironment env = TestEnvironment.Create(); 370using TestEnvironment env = TestEnvironment.Create(); 392using TestEnvironment env = TestEnvironment.Create(); 414using TestEnvironment env = TestEnvironment.Create(); 434using TestEnvironment env = TestEnvironment.Create(); 456using TestEnvironment env = TestEnvironment.Create(); 478using TestEnvironment env = TestEnvironment.Create(); 500using TestEnvironment env = TestEnvironment.Create(); 520using TestEnvironment env = TestEnvironment.Create(); 542using TestEnvironment env = TestEnvironment.Create(); 564using TestEnvironment env = TestEnvironment.Create();
Evaluation\ItemEvaluation_Tests.cs (6)
588using (var env = TestEnvironment.Create()) 651using var env = TestEnvironment.Create(); 681using (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())
NetTaskHost_E2E_Tests.cs (8)
34using TestEnvironment env = TestEnvironment.Create(_output); 63using TestEnvironment env = TestEnvironment.Create(_output); 123using TestEnvironment env = TestEnvironment.Create(_output); 141using 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)
38_env = TestEnvironment.Create(output); 126public ProjectGraph CreateGraph(TestEnvironment env) 347private readonly TestEnvironment _env;
SolutionFileBuilder.cs (1)
79TestEnvironment env,
Telemetry\OpenTelemetryManager_Tests.cs (8)
43using TestEnvironment environment = TestEnvironment.Create(); 57using TestEnvironment environment = TestEnvironment.Create(); 74using TestEnvironment environment = TestEnvironment.Create(); 90using TestEnvironment environment = TestEnvironment.Create();
Telemetry\Telemetry_Tests.cs (4)
179using TestEnvironment env = TestEnvironment.Create(); 213using var testEnv = TestEnvironment.Create(_output);
TerminalLogger_Tests.cs (4)
101using TestEnvironment testEnvironment = TestEnvironment.Create(); 822using (TestEnvironment env = TestEnvironment.Create())
TerminalLoggerConfiguration_Tests.cs (2)
23private readonly TestEnvironment _env; 29_env = TestEnvironment.Create(output);
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 62_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 115private static void SetDotnetHostPath(TestEnvironment testEnvironment) 167private TestEnvironment _testEnvironment; 171_testEnvironment = TestEnvironment.Create();
TypeLoader_Tests.cs (2)
99using (TestEnvironment env = TestEnvironment.Create())
Utilities_Tests.cs (2)
72using TestEnvironment env = TestEnvironment.Create();
WarningsAsMessagesAndErrors_Tests.cs (24)
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))
Microsoft.Build.Framework.UnitTests (5)
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 62_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 115private static void SetDotnetHostPath(TestEnvironment testEnvironment) 167private TestEnvironment _testEnvironment; 171_testEnvironment = TestEnvironment.Create();
Microsoft.Build.Tasks.UnitTests (232)
AddToWin32Manifest_Tests.cs (4)
42using (TestEnvironment env = TestEnvironment.Create()) 80using (TestEnvironment env = TestEnvironment.Create())
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (6)
122using (TestEnvironment env = TestEnvironment.Create()) 158using (TestEnvironment env = TestEnvironment.Create()) 184using (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()) 162using (var env = TestEnvironment.Create()) 187using (var env = TestEnvironment.Create()) 231using (var env = TestEnvironment.Create()) 254using (var env = TestEnvironment.Create()) 285using (var env = TestEnvironment.Create()) 309using (var env = TestEnvironment.Create()) 333using (var env = TestEnvironment.Create()) 356using (var env = TestEnvironment.Create()) 380using (var env = TestEnvironment.Create()) 404using (var env = TestEnvironment.Create()) 429using (var env = TestEnvironment.Create()) 455using (var env = TestEnvironment.Create()) 1097using (var env = TestEnvironment.Create()) 2517using (var env = TestEnvironment.Create()) 2936using 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()) 59using (TestEnvironment testEnvironment = TestEnvironment.Create()) 107using (TestEnvironment testEnvironment = TestEnvironment.Create()) 137using (TestEnvironment testEnvironment = TestEnvironment.Create()) 202using (TestEnvironment testEnvironment = TestEnvironment.Create()) 315using (TestEnvironment testEnvironment = TestEnvironment.Create())
Exec_Tests.cs (14)
59using (var testEnvironment = TestEnvironment.Create()) 77using (var env = TestEnvironment.Create()) 115using (var testEnvironment = TestEnvironment.Create()) 543using (TestEnvironment testEnvironment = TestEnvironment.Create()) 943using (var env = TestEnvironment.Create(_output)) 996using (var env = TestEnvironment.Create(_output)) 1048using (var env = TestEnvironment.Create(_output))
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)
18private readonly TestEnvironment _env; 22_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)
50using (TestEnvironment env = TestEnvironment.Create(_output)) 99using (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); 1998using TestEnvironment env = TestEnvironment.Create(); 2074using var env = TestEnvironment.Create(_output); 3665using (var env = TestEnvironment.Create()) 3896TestEnvironment env = null, 4094public static string WriteTestResX(bool useType, string linkedBitmap, string extraToken, string resxFileToWrite = null, TestEnvironment env = null) 4105public static string WriteTestResX(bool useType, string linkedBitmap, string extraToken, bool useInvalidType, string resxFileToWrite = null, TestEnvironment env = null)
ResourceHandling\MSBuildResXReader_Tests.cs (4)
154using (var env = TestEnvironment.Create(_output)) 291using var env = TestEnvironment.Create(_output);
ResourceManagement_Tests.cs (2)
145using var env = TestEnvironment.Create();
RoslynCodeTaskFactory_Tests.cs (24)
49using (TestEnvironment env = TestEnvironment.Create()) 97using (TestEnvironment env = TestEnvironment.Create()) 217using var env = TestEnvironment.Create(); 304using (TestEnvironment env = TestEnvironment.Create()) 424using (TestEnvironment testEnvironment = TestEnvironment.Create()) 521using (TestEnvironment env = TestEnvironment.Create()) 538using (TestEnvironment testEnvironment = TestEnvironment.Create()) 554using (TestEnvironment testEnvironment = TestEnvironment.Create()) 730using (TestEnvironment testEnvironment = TestEnvironment.Create()) 776using (TestEnvironment env = TestEnvironment.Create()) 896using var env = TestEnvironment.Create(); 1105using (TestEnvironment env = TestEnvironment.Create())
SGen_Tests.cs (2)
21using (TestEnvironment testenv = TestEnvironment.Create())
TaskFactoryUtilities_Tests.cs (2)
34using (var env = TestEnvironment.Create())
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 62_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 115private static void SetDotnetHostPath(TestEnvironment testEnvironment) 167private TestEnvironment _testEnvironment; 171_testEnvironment = TestEnvironment.Create();
Unzip_Tests.cs (28)
25using (TestEnvironment testEnvironment = TestEnvironment.Create()) 53using (TestEnvironment testEnvironment = TestEnvironment.Create()) 107using (TestEnvironment testEnvironment = TestEnvironment.Create()) 178using (TestEnvironment testEnvironment = TestEnvironment.Create()) 206using (TestEnvironment testEnvironment = TestEnvironment.Create()) 228using (TestEnvironment testEnvironment = TestEnvironment.Create()) 248using (TestEnvironment testEnvironment = TestEnvironment.Create()) 277using (TestEnvironment testEnvironment = TestEnvironment.Create()) 306using (TestEnvironment testEnvironment = TestEnvironment.Create()) 343using (TestEnvironment testEnvironment = TestEnvironment.Create()) 371using (TestEnvironment testEnvironment = TestEnvironment.Create()) 399using (TestEnvironment testEnvironment = TestEnvironment.Create()) 427using (TestEnvironment testEnvironment = TestEnvironment.Create()) 455using TestEnvironment testEnvironment = TestEnvironment.Create();
WriteCodeFragment_Tests.cs (8)
102using TestEnvironment env = TestEnvironment.Create(); 125using TestEnvironment env = TestEnvironment.Create(); 145using TestEnvironment env = TestEnvironment.Create(); 394using TestEnvironment env = TestEnvironment.Create();
WriteLinesToFile_Tests.cs (8)
160using TestEnvironment testEnv = TestEnvironment.Create(_output); 298using (var testEnv = TestEnvironment.Create()) 326using (var testEnv = TestEnvironment.Create()) 353using (var testEnv = TestEnvironment.Create())
ZipDirectory_Tests.cs (6)
40using (TestEnvironment testEnvironment = TestEnvironment.Create()) 98using (TestEnvironment testEnvironment = TestEnvironment.Create()) 139using (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)
36public static void ApplyDotnetHostPathEnvironmentVariable(TestEnvironment testEnvironment)
TestEnvironment.cs (3)
62public static TestEnvironment Create(ITestOutputHelper output = null, bool ignoreBuildErrorFiles = false) 64var env = new TestEnvironment(output ?? new DefaultOutput()); 872public TransientPrintLineDebugger(TestEnvironment environment, CommonWriterType writer)
Microsoft.Build.Utilities.UnitTests (45)
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 (5)
33private TestEnvironment _testEnvironment; 62_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 115private static void SetDotnetHostPath(TestEnvironment testEnvironment) 167private TestEnvironment _testEnvironment; 171_testEnvironment = TestEnvironment.Create();
ToolLocationHelper_Tests.cs (20)
2503using (var env = TestEnvironment.Create()) 2532using (var env = TestEnvironment.Create()) 2555using (var env = TestEnvironment.Create()) 2588using (var env = TestEnvironment.Create()) 2601using (var env = TestEnvironment.Create()) 2618using (var env = TestEnvironment.Create()) 2635using (var env = TestEnvironment.Create()) 2650using (var env = TestEnvironment.Create()) 2667using (var env = TestEnvironment.Create()) 2679private void CheckGetPathToReferenceAssemblies(TestEnvironment env, string customFrameworkDir, string fallbackSearchPaths, Func<string, string, string, string, string, IList<string>> getPathToReferenceAssemblies) 2721private static string CreateNewFrameworkAndGetAssembliesPath(TestEnvironment env, string frameworkName, string frameworkVersion, string rootDir)
ToolTask_Tests.cs (10)
657using (var env = TestEnvironment.Create()) 788using (TestEnvironment testEnvironment = TestEnvironment.Create()) 844using TestEnvironment testEnvironment = TestEnvironment.Create(_output); 912using var env = TestEnvironment.Create(_output); 943using var env = TestEnvironment.Create(_output);