1 instantiation of TestEnvironment
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
71var env = new TestEnvironment(output ?? new DefaultOutput());
998 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); 577using TestEnvironment env = TestEnvironment.Create(); 621using TestEnvironment env = TestEnvironment.Create(); 757using TestEnvironment env = TestEnvironment.Create(); 793using TestEnvironment env = TestEnvironment.Create(); 847using TestEnvironment env = TestEnvironment.Create(); 866using TestEnvironment env = TestEnvironment.Create(); 896using TestEnvironment env = TestEnvironment.Create(); 958using TestEnvironment testEnvironment = TestEnvironment.Create(); 1172using TestEnvironment testEnvironment = TestEnvironment.Create(); 1326using (TestEnvironment env = TestEnvironment.Create()) 2581using (var env = TestEnvironment.Create()) 2608using (var env = TestEnvironment.Create()) 2801using TestEnvironment testEnvironment = TestEnvironment.Create(); 2833using TestEnvironment testEnvironment = TestEnvironment.Create(); 2857using var testEnvironment = TestEnvironment.Create(); 2901using TestEnvironment testEnvironment = TestEnvironment.Create(); 2945using 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 (517)
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)
46using (TestEnvironment env = TestEnvironment.Create()) 120using (TestEnvironment env = TestEnvironment.Create(_output)) 187using TestEnvironment env = TestEnvironment.Create(_output);
BackEnd\TaskRegistry_Tests.cs (2)
658using (var 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)
2589using (var env = TestEnvironment.Create()) 4803using (var env = TestEnvironment.Create()) 4847using (var env = TestEnvironment.Create()) 4882using (var env = TestEnvironment.Create()) 4922using (var env = TestEnvironment.Create()) 4963using (var env = TestEnvironment.Create()) 5003using (var env = TestEnvironment.Create()) 5046using (var env = TestEnvironment.Create()) 5092using (var env = TestEnvironment.Create()) 5123using (var env = TestEnvironment.Create()) 5152using (var env = TestEnvironment.Create()) 5192using (var env = TestEnvironment.Create())
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (2)
864using TestEnvironment testEnvironment = TestEnvironment.Create();
Evaluation\IntrinsicFunctionOverload_Tests.cs (46)
29using TestEnvironment env = TestEnvironment.Create(); 51using TestEnvironment env = TestEnvironment.Create(); 73using TestEnvironment env = TestEnvironment.Create(); 95using TestEnvironment env = TestEnvironment.Create(); 117using TestEnvironment env = TestEnvironment.Create(); 128using TestEnvironment env = TestEnvironment.Create(); 169using TestEnvironment env = TestEnvironment.Create(); 210using TestEnvironment env = TestEnvironment.Create(); 260using TestEnvironment env = TestEnvironment.Create(); 282using TestEnvironment env = TestEnvironment.Create(); 304using TestEnvironment env = TestEnvironment.Create(); 326using TestEnvironment env = TestEnvironment.Create(); 346using TestEnvironment env = TestEnvironment.Create(); 368using TestEnvironment env = TestEnvironment.Create(); 390using TestEnvironment env = TestEnvironment.Create(); 412using TestEnvironment env = TestEnvironment.Create(); 432using TestEnvironment env = TestEnvironment.Create(); 454using TestEnvironment env = TestEnvironment.Create(); 476using TestEnvironment env = TestEnvironment.Create(); 498using TestEnvironment env = TestEnvironment.Create(); 518using TestEnvironment env = TestEnvironment.Create(); 540using TestEnvironment env = TestEnvironment.Create(); 562using 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)
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())
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 (4)
34using TestEnvironment env = TestEnvironment.Create(_output, setupDotnetEnvVars: true); 63using TestEnvironment env = TestEnvironment.Create(_output, setupDotnetEnvVars: true);
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)
103using TestEnvironment testEnvironment = TestEnvironment.Create(); 825using (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(); 241using var env = TestEnvironment.Create(); 310using (TestEnvironment env = TestEnvironment.Create()) 430using (TestEnvironment testEnvironment = TestEnvironment.Create()) 527using (TestEnvironment env = TestEnvironment.Create()) 544using (TestEnvironment testEnvironment = TestEnvironment.Create()) 560using (TestEnvironment testEnvironment = TestEnvironment.Create()) 736using (TestEnvironment testEnvironment = TestEnvironment.Create()) 782using (TestEnvironment env = TestEnvironment.Create()) 902using var env = TestEnvironment.Create();
SGen_Tests.cs (2)
21using (TestEnvironment testenv = TestEnvironment.Create())
TaskFactoryUtilities_Tests.cs (2)
35using (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)
69public static TestEnvironment Create(ITestOutputHelper output = null, bool ignoreBuildErrorFiles = false, bool setupDotnetEnvVars = false) 71var env = new TestEnvironment(output ?? new DefaultOutput()); 867public 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);