1 instantiation of TestEnvironment
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
48var env = new TestEnvironment(output ?? new DefaultOutput());
878 references to TestEnvironment
Microsoft.Build.BuildCheck.UnitTests (12)
EndToEndTests.cs (5)
19private readonly TestEnvironment _env; 23_env = TestEnvironment.Create(output); 143using (var env = TestEnvironment.Create()) 164private IList<string> BuildAnalyzerRules(TestEnvironment env, string[] customAnalyzerNames)
TaskInvocationAnalysisDataTests.cs (2)
76using (var env = TestEnvironment.Create())
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 45_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 98private static void SetDotnetHostPath(TestEnvironment testEnvironment) 150private TestEnvironment _testEnvironment; 154_testEnvironment = TestEnvironment.Create();
Microsoft.Build.CommandLine.UnitTests (45)
CommandLineSwitches_Tests.cs (6)
1103using (TestEnvironment env = TestEnvironment.Create()) 1384using (TestEnvironment env = TestEnvironment.Create()) 1524using TestEnvironment testEnvironment = TestEnvironment.Create();
MSBuildServer_Tests.cs (2)
63private readonly TestEnvironment _env; 87_env = TestEnvironment.Create(_output);
PerfLog_Tests.cs (4)
26using (TestEnvironment testEnv = TestEnvironment.Create(_output)) 61using (TestEnvironment testEnv = TestEnvironment.Create(_output))
TerminalLogger_Tests.cs (2)
649using (TestEnvironment env = TestEnvironment.Create())
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 45_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 98private static void SetDotnetHostPath(TestEnvironment testEnvironment) 150private TestEnvironment _testEnvironment; 154_testEnvironment = TestEnvironment.Create();
XMake_Tests.cs (26)
38private readonly TestEnvironment _env; 43_env = UnitTests.TestEnvironment.Create(_output); 530using TestEnvironment env = TestEnvironment.Create(); 574using TestEnvironment env = TestEnvironment.Create(); 710using TestEnvironment env = TestEnvironment.Create(); 746using TestEnvironment env = TestEnvironment.Create(); 800using TestEnvironment env = TestEnvironment.Create(); 819using TestEnvironment env = TestEnvironment.Create(); 849using TestEnvironment env = TestEnvironment.Create(); 913using TestEnvironment testEnvironment = TestEnvironment.Create(); 1135using TestEnvironment testEnvironment = TestEnvironment.Create(); 1289using (TestEnvironment env = TestEnvironment.Create()) 2595using TestEnvironment testEnvironment = UnitTests.TestEnvironment.Create(); 2649using TestEnvironment testEnvironment = UnitTests.TestEnvironment.Create();
Microsoft.Build.Engine.OM.UnitTests (94)
Construction\ConstructionEditing_Tests.cs (2)
3169using (var env = TestEnvironment.Create())
Construction\ProjectRootElement_Tests.cs (10)
1277using (var env = TestEnvironment.Create()) 1316using (var env = TestEnvironment.Create()) 1577using (var env = TestEnvironment.Create()) 1716using (var env = TestEnvironment.Create()) 1840using var env = TestEnvironment.Create();
Construction\ProjectTargetElement_Tests.cs (2)
347using (TestEnvironment env = TestEnvironment.Create())
Definition\DefinitionEditing_Tests.cs (2)
1693using (var env = TestEnvironment.Create())
Definition\Project_Tests.cs (34)
1429using (var env = TestEnvironment.Create()) 1493using (var env = TestEnvironment.Create()) 1577using (var env = TestEnvironment.Create()) 3217using (var env = TestEnvironment.Create()) 3245using (var env = TestEnvironment.Create()) 3538using (var env = TestEnvironment.Create()) 3731using (var env = TestEnvironment.Create()) 3808using (var env = TestEnvironment.Create()) 3827using (var env = TestEnvironment.Create()) 3856using (var env = TestEnvironment.Create(_output)) 3899using (var env = TestEnvironment.Create(_output)) 3938using (var env = TestEnvironment.Create(_output)) 3983using (var env = TestEnvironment.Create(_output)) 4030using (var env = TestEnvironment.Create(_output)) 4070using (var env = TestEnvironment.Create(_output)) 4113using (var env = TestEnvironment.Create(_output)) 4158using (var env = TestEnvironment.Create(_output))
Definition\ProjectItem_Tests.cs (37)
59protected readonly TestEnvironment _env; 64_env = TestEnvironment.Create(); 448using (TestEnvironment env = TestEnvironment.Create()) 777using (var env = TestEnvironment.Create()) 824using (var env = TestEnvironment.Create()) 932using (var env = TestEnvironment.Create()) 943private static void CreateProjectInstanceFromFileWithDriveEnumeratingWildcard(TestEnvironment env, string testProjectFile, bool throwException) 1097using (var env = TestEnvironment.Create()) 1150using (var env = TestEnvironment.Create()) 1170using (var env = TestEnvironment.Create()) 2149using (var env = TestEnvironment.Create()) 2175using (var env = TestEnvironment.Create()) 2206using (var env = TestEnvironment.Create()) 2266using (var env = TestEnvironment.Create()) 2548using (var env = TestEnvironment.Create()) 2585using (var env = TestEnvironment.Create()) 3111using var env = TestEnvironment.Create(); 3311using var env = TestEnvironment.Create(); 3701using (var env = TestEnvironment.Create()) 3740using (var env = TestEnvironment.Create())
NugetRestoreTests.cs (2)
27using TestEnvironment testEnvironment = TestEnvironment.Create();
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 45_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 98private static void SetDotnetHostPath(TestEnvironment testEnvironment) 150private TestEnvironment _testEnvironment; 154_testEnvironment = TestEnvironment.Create();
Microsoft.Build.Engine.UnitTests (452)
BackEnd\BuildManager_Logging_Tests.cs (2)
62private readonly TestEnvironment _env; 78_env = TestEnvironment.Create(output);
BackEnd\BuildManager_Tests.cs (8)
60private readonly TestEnvironment _env; 87_env = TestEnvironment.Create(output); 3622using (var env = TestEnvironment.Create()) 3958using (var env = TestEnvironment.Create(_output)) 4010using (var env = TestEnvironment.Create())
BackEnd\BuildRequestConfiguration_Tests.cs (2)
27private TestEnvironment _env; 31_env = TestEnvironment.Create(testOutput);
BackEnd\CacheAggregator_Tests.cs (12)
49using (var env = TestEnvironment.Create()) 62using (var env = TestEnvironment.Create()) 88using (var env = TestEnvironment.Create()) 115using (var env = TestEnvironment.Create()) 138using (var env = TestEnvironment.Create()) 169using (var env = TestEnvironment.Create())
BackEnd\GenerateTemporaryTargetAssembly_Tests.cs (2)
19using (TestEnvironment testenv = TestEnvironment.Create())
BackEnd\IntrinsicTask_Tests.cs (4)
1773using (var env = TestEnvironment.Create()) 2465using (var env = TestEnvironment.Create())
BackEnd\MSBuild_Tests.cs (6)
781using TestEnvironment env = TestEnvironment.Create(); 812using TestEnvironment env = TestEnvironment.Create(); 856using TestEnvironment 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\SdkResolverService_Tests.cs (2)
157using (TestEnvironment env = TestEnvironment.Create())
BackEnd\SdkResultOutOfProc_Tests.cs (2)
48private readonly TestEnvironment _env; 67_env = TestEnvironment.Create(output);
BackEnd\TargetBuilder_Tests.cs (4)
212using (var env = TestEnvironment.Create()) 249using (var env = TestEnvironment.Create())
BackEnd\TaskBuilder_Tests.cs (6)
91using TestEnvironment env = TestEnvironment.Create(); 142using (TestEnvironment env = TestEnvironment.Create(_testOutput)) 648using var env = TestEnvironment.Create();
BackEnd\TaskExecutionHost_Tests.cs (2)
1063using TestEnvironment env = TestEnvironment.Create();
BackEnd\TaskHostFactory_Tests.cs (4)
33using (TestEnvironment env = TestEnvironment.Create()) 80using TestEnvironment env = TestEnvironment.Create(_output);
BackEnd\TaskRegistry_Tests.cs (2)
657using (var env = TestEnvironment.Create(_output))
BinaryLogger_Tests.cs (10)
77private readonly TestEnvironment _env; 82_env = TestEnvironment.Create(output); 335using (TestEnvironment env = TestEnvironment.Create()) 380using (TestEnvironment env = TestEnvironment.Create()) 569using var env = TestEnvironment.Create(); 613using (TestEnvironment env = TestEnvironment.Create())
ChangeWaves_Tests.cs (18)
31private void SetChangeWave(string wave, TestEnvironment env) 46private void buildSimpleProjectAndValidateChangeWave(TestEnvironment testEnvironment, Version versionToCheckAgainstCurrentChangeWave, Version currentChangeWaveShouldUltimatelyResolveTo, params string[] warningCodesLogShouldContain) 82using (TestEnvironment env = TestEnvironment.Create()) 103using (TestEnvironment env = TestEnvironment.Create()) 124using (TestEnvironment env = TestEnvironment.Create()) 141using (TestEnvironment env = TestEnvironment.Create()) 161using (TestEnvironment env = TestEnvironment.Create()) 185using (TestEnvironment env = TestEnvironment.Create()) 199using (TestEnvironment env = TestEnvironment.Create()) 222using (TestEnvironment env = TestEnvironment.Create())
ConsoleLogger_Tests.cs (6)
191using var env = TestEnvironment.Create(_output); 231using var env = TestEnvironment.Create(_output); 274using 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)
68using (var env = TestEnvironment.Create()) 99using (var env = TestEnvironment.Create())
Construction\SolutionFile_Tests.cs (4)
260using (var env = TestEnvironment.Create()) 697using (var env = TestEnvironment.Create())
Construction\SolutionFilter_Tests.cs (6)
46using (TestEnvironment testEnvironment = TestEnvironment.Create()) 205using (TestEnvironment testEnvironment = TestEnvironment.Create()) 221using (TestEnvironment testEnvironment = TestEnvironment.Create())
Construction\SolutionProjectGenerator_Tests.cs (10)
65using (TestEnvironment testEnvironment = TestEnvironment.Create()) 85using (TestEnvironment testEnvironment = TestEnvironment.Create()) 128using (TestEnvironment testEnvironment = TestEnvironment.Create()) 202using (TestEnvironment testEnvironment = TestEnvironment.Create()) 857using (TestEnvironment env = TestEnvironment.Create())
Definition\Project_Internal_Tests.cs (8)
232using (var env = TestEnvironment.Create()) 269using (TestEnvironment testEnvironment = TestEnvironment.Create()) 297using (TestEnvironment testEnvironment = TestEnvironment.Create()) 325using (TestEnvironment testEnvironment = TestEnvironment.Create())
Definition\ProjectEvaluationContext_Tests.cs (2)
32_env = TestEnvironment.Create(); 48private readonly TestEnvironment _env;
Evaluation\EvaluationLogging_Tests.cs (2)
72using (var env = TestEnvironment.Create())
Evaluation\Evaluator_Tests.cs (18)
57using (TestEnvironment env = TestEnvironment.Create()) 922using (TestEnvironment env = TestEnvironment.Create()) 1670using (var env = TestEnvironment.Create()) 1751using (var env = TestEnvironment.Create()) 4488using (var env = TestEnvironment.Create()) 4536using (TestEnvironment testEnvironment = TestEnvironment.Create()) 4565using (TestEnvironment testEnvironment = TestEnvironment.Create()) 4923using (TestEnvironment env = TestEnvironment.Create()) 4971using (TestEnvironment env = TestEnvironment.Create())
Evaluation\Expander_Tests.cs (22)
2536using (var env = TestEnvironment.Create()) 4722using (var env = TestEnvironment.Create()) 4766using (var env = TestEnvironment.Create()) 4801using (var env = TestEnvironment.Create()) 4841using (var env = TestEnvironment.Create()) 4882using (var env = TestEnvironment.Create()) 4922using (var env = TestEnvironment.Create()) 4965using (var env = TestEnvironment.Create()) 5011using (var env = TestEnvironment.Create()) 5042using (var env = TestEnvironment.Create()) 5076using (var env = TestEnvironment.Create())
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (2)
864using TestEnvironment testEnvironment = TestEnvironment.Create();
Evaluation\IntrinsicFunctionOverload_Tests.cs (40)
37using TestEnvironment env = TestEnvironment.Create(); 63using TestEnvironment env = TestEnvironment.Create(); 84using TestEnvironment env = TestEnvironment.Create(); 105using TestEnvironment env = TestEnvironment.Create(); 128using TestEnvironment env = TestEnvironment.Create(); 154using TestEnvironment env = TestEnvironment.Create(); 175using TestEnvironment env = TestEnvironment.Create(); 196using TestEnvironment env = TestEnvironment.Create(); 219using TestEnvironment env = TestEnvironment.Create(); 245using TestEnvironment env = TestEnvironment.Create(); 266using TestEnvironment env = TestEnvironment.Create(); 287using TestEnvironment env = TestEnvironment.Create(); 310using TestEnvironment env = TestEnvironment.Create(); 336using TestEnvironment env = TestEnvironment.Create(); 357using TestEnvironment env = TestEnvironment.Create(); 378using TestEnvironment env = TestEnvironment.Create(); 401using TestEnvironment env = TestEnvironment.Create(); 427using TestEnvironment env = TestEnvironment.Create(); 448using TestEnvironment env = TestEnvironment.Create(); 469using TestEnvironment env = TestEnvironment.Create();
Evaluation\ItemEvaluation_Tests.cs (4)
586using (var env = TestEnvironment.Create()) 644using (var env = TestEnvironment.Create())
Evaluation\Preprocessor_Tests.cs (6)
846using (TestEnvironment env = TestEnvironment.Create()) 935using (TestEnvironment env = TestEnvironment.Create()) 1050using (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\ProjectStringCache_Tests.cs (18)
31using (TestEnvironment env = TestEnvironment.Create()) 89using (TestEnvironment env = TestEnvironment.Create()) 167using (TestEnvironment env = TestEnvironment.Create()) 252using (TestEnvironment env = TestEnvironment.Create()) 294using (TestEnvironment env = TestEnvironment.Create()) 341using (TestEnvironment env = TestEnvironment.Create()) 380using (TestEnvironment env = TestEnvironment.Create()) 425using (TestEnvironment env = TestEnvironment.Create()) 465using (TestEnvironment env = TestEnvironment.Create())
Evaluation\SdkResultEvaluation_Tests.cs (2)
24private TestEnvironment _env; 35_env = TestEnvironment.Create();
EvaluationProfiler_Tests.cs (2)
29private readonly TestEnvironment _env; 63_env = TestEnvironment.Create(output);
FileLogger_Tests.cs (4)
360using (var env = TestEnvironment.Create()) 396using (var testEnvironment = TestEnvironment.Create())
FileMatcher_Tests.cs (8)
25private readonly TestEnvironment _env; 30_env = TestEnvironment.Create(output); 1283using (var env = TestEnvironment.Create()) 1349using (var env = TestEnvironment.Create()) 1388using (var env = TestEnvironment.Create())
Graph\GetCompatiblePlatformGraph_Tests.cs (22)
40using (var env = TestEnvironment.Create()) 67using (var env = TestEnvironment.Create()) 108using (var env = TestEnvironment.Create()) 150using (var env = TestEnvironment.Create()) 191using (var env = TestEnvironment.Create()) 218using (var env = TestEnvironment.Create()) 246using (var env = TestEnvironment.Create()) 273using (var env = TestEnvironment.Create()) 301using (var env = TestEnvironment.Create()) 331using (var env = TestEnvironment.Create()) 359using (TestEnvironment testEnvironment = TestEnvironment.Create())
Graph\GraphLoadedFromSolution_tests.cs (2)
27private TestEnvironment _env; 31_env = TestEnvironment.Create(output);
Graph\GraphTestingUtilities.cs (1)
197TestEnvironment env,
Graph\IsolateProjects_Tests.cs (3)
131private TestEnvironment _env; 137_env = TestEnvironment.Create(_testOutput, ignoreBuildErrorFiles: true); 559TransientTestFile 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)
33_env = TestEnvironment.Create(_output); 44private readonly TestEnvironment _env; 424TestEnvironment env, 512private static TransientTestFile CreateProjectFileWrapper(TestEnvironment env, int projectNumber, int[] projectReferences, Dictionary<string, string[]> projectReferenceTargets, string defaultTargets, string extraContent) 518TestEnvironment env,
Instance\ProjectInstance_Internal_Tests.cs (6)
753using (var env = TestEnvironment.Create()) 878using (TestEnvironment testEnvironment = TestEnvironment.Create()) 906using (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())
ProjectCache\ProjectCacheTests.cs (3)
34_env = TestEnvironment.Create(output); 107public ProjectGraph CreateGraph(TestEnvironment env) 328private readonly TestEnvironment _env;
SolutionFileBuilder.cs (1)
79TestEnvironment env,
TerminalLoggerConfiguration_Tests.cs (2)
23private readonly TestEnvironment _env; 29_env = TestEnvironment.Create(output);
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 45_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 98private static void SetDotnetHostPath(TestEnvironment testEnvironment) 150private TestEnvironment _testEnvironment; 154_testEnvironment = TestEnvironment.Create();
TypeLoader_Tests.cs (2)
99using (TestEnvironment env = TestEnvironment.Create())
Utilities_Tests.cs (2)
75using TestEnvironment env = TestEnvironment.Create();
WarningsAsMessagesAndErrors_Tests.cs (22)
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))
Microsoft.Build.Framework.UnitTests (5)
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 45_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 98private static void SetDotnetHostPath(TestEnvironment testEnvironment) 150private TestEnvironment _testEnvironment; 154_testEnvironment = TestEnvironment.Create();
Microsoft.Build.Tasks.UnitTests (208)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (6)
122using (TestEnvironment env = TestEnvironment.Create()) 158using (TestEnvironment env = TestEnvironment.Create()) 184using (TestEnvironment env = TestEnvironment.Create())
CodeTaskFactoryEmbeddedFileInBinlogTestHelper.cs (4)
28using var env = TestEnvironment.Create(); 104using var env = TestEnvironment.Create();
Copy_Tests.cs (32)
143using (var env = TestEnvironment.Create()) 167using (var env = TestEnvironment.Create()) 192using (var env = TestEnvironment.Create()) 236using (var env = TestEnvironment.Create()) 259using (var env = TestEnvironment.Create()) 290using (var env = TestEnvironment.Create()) 314using (var env = TestEnvironment.Create()) 338using (var env = TestEnvironment.Create()) 361using (var env = TestEnvironment.Create()) 385using (var env = TestEnvironment.Create()) 409using (var env = TestEnvironment.Create()) 434using (var env = TestEnvironment.Create()) 460using (var env = TestEnvironment.Create()) 1102using (var env = TestEnvironment.Create()) 2522using (var env = TestEnvironment.Create()) 2941using 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)
193using var env = TestEnvironment.Create(_testOutput); 296using (var env = TestEnvironment.Create()) 348using (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)
60using (var testEnvironment = TestEnvironment.Create()) 78using (var env = TestEnvironment.Create()) 116using (var testEnvironment = TestEnvironment.Create()) 533using (TestEnvironment testEnvironment = TestEnvironment.Create()) 933using (var env = TestEnvironment.Create(_output)) 986using (var env = TestEnvironment.Create(_output)) 1038using (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)
276using (TestEnvironment env = TestEnvironment.Create())
HintPathResolver_Tests.cs (2)
19private readonly TestEnvironment _env; 23_env = TestEnvironment.Create(testOutput);
PortableTasks_Tests.cs (2)
47using (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))
ResourceHandling\GenerateResource_Tests.cs (11)
27private readonly TestEnvironment _env; 32_env = TestEnvironment.Create(output); 2000using TestEnvironment env = TestEnvironment.Create(); 2076using var env = TestEnvironment.Create(_output); 3667using (var env = TestEnvironment.Create()) 3898TestEnvironment env = null, 4096public static string WriteTestResX(bool useType, string linkedBitmap, string extraToken, string resxFileToWrite = null, TestEnvironment env = null) 4107public 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 (20)
48using (TestEnvironment env = TestEnvironment.Create()) 89using (TestEnvironment env = TestEnvironment.Create()) 201using var env = TestEnvironment.Create(); 292using (TestEnvironment testEnvironment = TestEnvironment.Create()) 389using (TestEnvironment env = TestEnvironment.Create()) 406using (TestEnvironment testEnvironment = TestEnvironment.Create()) 422using (TestEnvironment testEnvironment = TestEnvironment.Create()) 595using (TestEnvironment testEnvironment = TestEnvironment.Create()) 639using (TestEnvironment env = TestEnvironment.Create()) 752using var env = TestEnvironment.Create();
SGen_Tests.cs (2)
22using (TestEnvironment testenv = TestEnvironment.Create())
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 45_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 98private static void SetDotnetHostPath(TestEnvironment testEnvironment) 150private TestEnvironment _testEnvironment; 154_testEnvironment = TestEnvironment.Create();
Unzip_Tests.cs (26)
26using (TestEnvironment testEnvironment = TestEnvironment.Create()) 54using (TestEnvironment testEnvironment = TestEnvironment.Create()) 108using (TestEnvironment testEnvironment = TestEnvironment.Create()) 179using (TestEnvironment testEnvironment = TestEnvironment.Create()) 207using (TestEnvironment testEnvironment = TestEnvironment.Create()) 229using (TestEnvironment testEnvironment = TestEnvironment.Create()) 249using (TestEnvironment testEnvironment = TestEnvironment.Create()) 278using (TestEnvironment testEnvironment = TestEnvironment.Create()) 307using (TestEnvironment testEnvironment = TestEnvironment.Create()) 344using (TestEnvironment testEnvironment = TestEnvironment.Create()) 372using (TestEnvironment testEnvironment = TestEnvironment.Create()) 400using (TestEnvironment testEnvironment = TestEnvironment.Create()) 428using (TestEnvironment testEnvironment = TestEnvironment.Create())
WriteCodeFragment_Tests.cs (8)
103using TestEnvironment env = TestEnvironment.Create(); 126using TestEnvironment env = TestEnvironment.Create(); 146using TestEnvironment env = TestEnvironment.Create(); 395using 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)
25using (TestEnvironment testEnvironment = TestEnvironment.Create()) 66using (TestEnvironment testEnvironment = TestEnvironment.Create()) 108using (TestEnvironment testEnvironment = TestEnvironment.Create())
Microsoft.Build.UnitTests.Shared (17)
ObjectModelHelpers.cs (13)
140using (var env = TestEnvironment.Create()) 1392using (var env = TestEnvironment.Create()) 1447using (var env = TestEnvironment.Create(testOutput)) 1461public static void ResetStateForDriveEnumeratingWildcardTests(TestEnvironment env, string setEnvVar) 1468public static void BuildTargetWithDriveEnumeratingWildcardUsingBuildManager(TestEnvironment env, string testProjectFile, string targetName, ExpectedBuildResult expectedBuildResult, ITestOutputHelper testOutput = null) 1674TestEnvironment env, 1682TestEnvironment env, 1732TestEnvironment env, 2052private readonly TestEnvironment _env; 2059TestEnvironment env,
RunnerUtilities.cs (1)
23public static void ApplyDotnetHostPathEnvironmentVariable(TestEnvironment testEnvironment)
TestEnvironment.cs (3)
46public static TestEnvironment Create(ITestOutputHelper output = null, bool ignoreBuildErrorFiles = false) 48var env = new TestEnvironment(output ?? new DefaultOutput()); 826public TransientPrintLineDebugger(TestEnvironment environment, CommonWriterType writer)
Microsoft.Build.Utilities.UnitTests (45)
EncodingUtilities_Tests.cs (2)
49using 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; 45_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 98private static void SetDotnetHostPath(TestEnvironment testEnvironment) 150private TestEnvironment _testEnvironment; 154_testEnvironment = TestEnvironment.Create();
ToolLocationHelper_Tests.cs (20)
2500using (var env = TestEnvironment.Create()) 2529using (var env = TestEnvironment.Create()) 2552using (var env = TestEnvironment.Create()) 2585using (var env = TestEnvironment.Create()) 2598using (var env = TestEnvironment.Create()) 2615using (var env = TestEnvironment.Create()) 2632using (var env = TestEnvironment.Create()) 2647using (var env = TestEnvironment.Create()) 2664using (var env = TestEnvironment.Create()) 2676private void CheckGetPathToReferenceAssemblies(TestEnvironment env, string customFrameworkDir, string fallbackSearchPaths, Func<string, string, string, string, string, IList<string>> getPathToReferenceAssemblies) 2718private static string CreateNewFrameworkAndGetAssembliesPath(TestEnvironment env, string frameworkName, string frameworkVersion, string rootDir)
ToolTask_Tests.cs (10)
657using (var env = TestEnvironment.Create()) 787using (TestEnvironment testEnvironment = TestEnvironment.Create()) 843using TestEnvironment testEnvironment = TestEnvironment.Create(_output); 911using var env = TestEnvironment.Create(_output); 942using var env = TestEnvironment.Create(_output);