1 instantiation of TestEnvironment
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
48var env = new TestEnvironment(output ?? new DefaultOutput());
899 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)
24private readonly TestEnvironment _env; 28_env = TestEnvironment.Create(output); 282using (var env = TestEnvironment.Create()) 462using (var env = TestEnvironment.Create()) 495using (var env = TestEnvironment.Create()) 523using (var env = TestEnvironment.Create())
TaskInvocationAnalysisDataTests.cs (2)
83using (var env = TestEnvironment.Create(_output))
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 51_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 104private static void SetDotnetHostPath(TestEnvironment testEnvironment) 156private TestEnvironment _testEnvironment; 160_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)
691using (TestEnvironment env = TestEnvironment.Create())
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 51_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 104private static void SetDotnetHostPath(TestEnvironment testEnvironment) 156private TestEnvironment _testEnvironment; 160_testEnvironment = TestEnvironment.Create();
XMake_Tests.cs (26)
39private readonly TestEnvironment _env; 44_env = UnitTests.TestEnvironment.Create(_output); 531using TestEnvironment env = TestEnvironment.Create(); 575using TestEnvironment env = TestEnvironment.Create(); 711using TestEnvironment env = TestEnvironment.Create(); 747using TestEnvironment env = TestEnvironment.Create(); 801using TestEnvironment env = TestEnvironment.Create(); 820using TestEnvironment env = TestEnvironment.Create(); 850using TestEnvironment env = TestEnvironment.Create(); 912using TestEnvironment testEnvironment = TestEnvironment.Create(); 1126using TestEnvironment testEnvironment = TestEnvironment.Create(); 1280using (TestEnvironment env = TestEnvironment.Create()) 2646using TestEnvironment testEnvironment = UnitTests.TestEnvironment.Create(); 2700using TestEnvironment testEnvironment = UnitTests.TestEnvironment.Create();
Microsoft.Build.Engine.OM.UnitTests (94)
Construction\ConstructionEditing_Tests.cs (2)
3209using (var env = TestEnvironment.Create())
Construction\ProjectRootElement_Tests.cs (8)
1290using (var env = TestEnvironment.Create()) 1329using (var env = TestEnvironment.Create()) 1591using (var env = TestEnvironment.Create()) 1731using (var env = TestEnvironment.Create())
Construction\ProjectTargetElement_Tests.cs (2)
346using (TestEnvironment env = TestEnvironment.Create())
Construction\SolutionFile_Tests.cs (2)
687using (TestEnvironment testEnvironment = TestEnvironment.Create())
Definition\DefinitionEditing_Tests.cs (2)
1697using (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)
59protected readonly TestEnvironment _env; 64_env = TestEnvironment.Create(); 449using (TestEnvironment env = TestEnvironment.Create()) 778using (var env = TestEnvironment.Create()) 825using (var env = TestEnvironment.Create()) 933using (var env = TestEnvironment.Create()) 944private static void CreateProjectInstanceFromFileWithDriveEnumeratingWildcard(TestEnvironment env, string testProjectFile, bool throwException) 1098using (var env = TestEnvironment.Create()) 1151using (var env = TestEnvironment.Create()) 1171using (var env = TestEnvironment.Create()) 2155using (var env = TestEnvironment.Create()) 2181using (var env = TestEnvironment.Create()) 2212using (var env = TestEnvironment.Create()) 2272using (var env = TestEnvironment.Create()) 2554using (var env = TestEnvironment.Create()) 2591using (var env = TestEnvironment.Create()) 3117using var env = TestEnvironment.Create(); 3317using var env = TestEnvironment.Create(); 3707using (var env = TestEnvironment.Create()) 3746using (var env = TestEnvironment.Create())
NugetRestoreTests.cs (2)
27using TestEnvironment testEnvironment = TestEnvironment.Create();
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 51_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 104private static void SetDotnetHostPath(TestEnvironment testEnvironment) 156private TestEnvironment _testEnvironment; 160_testEnvironment = TestEnvironment.Create();
Microsoft.Build.Engine.UnitTests (442)
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); 3688using (var env = TestEnvironment.Create()) 4025using (var env = TestEnvironment.Create(_output)) 4077using (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)
1824using (var env = TestEnvironment.Create()) 2523using (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)
405using (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)
48private readonly TestEnvironment _env; 67_env = TestEnvironment.Create(output);
BackEnd\TargetBuilder_Tests.cs (4)
217using (var env = TestEnvironment.Create()) 254using (var env = TestEnvironment.Create())
BackEnd\TaskBuilder_Tests.cs (6)
92using TestEnvironment env = TestEnvironment.Create(); 144using (TestEnvironment env = TestEnvironment.Create(_testOutput)) 658using var env = TestEnvironment.Create();
BackEnd\TaskExecutionHost_Tests.cs (2)
1063using TestEnvironment env = TestEnvironment.Create();
BackEnd\TaskHostFactory_Tests.cs (4)
33using (TestEnvironment env = TestEnvironment.Create()) 67using TestEnvironment env = TestEnvironment.Create(_output);
BackEnd\TaskRegistry_Tests.cs (2)
658using (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_NewParser_Tests.cs (2)
136using (TestEnvironment testEnvironment = TestEnvironment.Create())
Construction\SolutionFile_OldParser_Tests.cs (4)
297using (var env = TestEnvironment.Create()) 771using (var env = TestEnvironment.Create())
Construction\SolutionFilter_Tests.cs (6)
50using (TestEnvironment testEnvironment = TestEnvironment.Create()) 209using (TestEnvironment testEnvironment = TestEnvironment.Create()) 227using (TestEnvironment testEnvironment = TestEnvironment.Create())
Construction\SolutionProjectGenerator_Tests.cs (10)
67using (TestEnvironment testEnvironment = TestEnvironment.Create()) 89using (TestEnvironment testEnvironment = TestEnvironment.Create()) 134using (TestEnvironment testEnvironment = TestEnvironment.Create()) 210using (TestEnvironment testEnvironment = TestEnvironment.Create()) 881using (TestEnvironment env = TestEnvironment.Create())
Definition\Project_Internal_Tests.cs (8)
234using (var env = TestEnvironment.Create()) 271using (TestEnvironment testEnvironment = TestEnvironment.Create()) 299using (TestEnvironment testEnvironment = TestEnvironment.Create()) 327using (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 (20)
56using TestEnvironment env = TestEnvironment.Create(); 74using (TestEnvironment env = TestEnvironment.Create()) 944using (TestEnvironment env = TestEnvironment.Create()) 1707using (var env = TestEnvironment.Create()) 1791using (var env = TestEnvironment.Create()) 4574using (var env = TestEnvironment.Create()) 4623using (TestEnvironment testEnvironment = TestEnvironment.Create()) 4652using (TestEnvironment testEnvironment = TestEnvironment.Create()) 5007using (TestEnvironment env = TestEnvironment.Create()) 5055using (TestEnvironment env = TestEnvironment.Create())
Evaluation\Expander_Tests.cs (24)
2589using (var env = TestEnvironment.Create()) 4778using (var env = TestEnvironment.Create()) 4822using (var env = TestEnvironment.Create()) 4857using (var env = TestEnvironment.Create()) 4897using (var env = TestEnvironment.Create()) 4938using (var env = TestEnvironment.Create()) 4978using (var env = TestEnvironment.Create()) 5021using (var env = TestEnvironment.Create()) 5067using (var env = TestEnvironment.Create()) 5098using (var env = TestEnvironment.Create()) 5127using (var env = TestEnvironment.Create()) 5167using (var env = TestEnvironment.Create())
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (2)
865using TestEnvironment testEnvironment = TestEnvironment.Create();
Evaluation\IntrinsicFunctionOverload_Tests.cs (40)
33using TestEnvironment env = TestEnvironment.Create(); 55using TestEnvironment env = TestEnvironment.Create(); 77using TestEnvironment env = TestEnvironment.Create(); 99using TestEnvironment env = TestEnvironment.Create(); 121using TestEnvironment env = TestEnvironment.Create(); 141using TestEnvironment env = TestEnvironment.Create(); 163using TestEnvironment env = TestEnvironment.Create(); 185using TestEnvironment env = TestEnvironment.Create(); 207using TestEnvironment env = TestEnvironment.Create(); 227using TestEnvironment env = TestEnvironment.Create(); 249using TestEnvironment env = TestEnvironment.Create(); 271using TestEnvironment env = TestEnvironment.Create(); 293using TestEnvironment env = TestEnvironment.Create(); 313using TestEnvironment env = TestEnvironment.Create(); 335using TestEnvironment env = TestEnvironment.Create(); 357using TestEnvironment env = TestEnvironment.Create(); 379using TestEnvironment env = TestEnvironment.Create(); 399using TestEnvironment env = TestEnvironment.Create(); 421using TestEnvironment env = TestEnvironment.Create(); 443using 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()) 938using (TestEnvironment env = TestEnvironment.Create()) 1053using (TestEnvironment env = TestEnvironment.Create())
Evaluation\ProjectCollection_Tests.cs (2)
22using (TestEnvironment env = TestEnvironment.Create())
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
70private TestEnvironment _env; 86_env = TestEnvironment.Create();
Evaluation\SdkResultEvaluation_Tests.cs (2)
24private TestEnvironment _env; 35_env = TestEnvironment.Create();
EvaluationProfiler_Tests.cs (2)
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)
763using (var env = TestEnvironment.Create()) 891using (TestEnvironment testEnvironment = TestEnvironment.Create()) 919using (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; 51_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 104private static void SetDotnetHostPath(TestEnvironment testEnvironment) 156private TestEnvironment _testEnvironment; 160_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; 51_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 104private static void SetDotnetHostPath(TestEnvironment testEnvironment) 156private TestEnvironment _testEnvironment; 160_testEnvironment = TestEnvironment.Create();
Microsoft.Build.Tasks.UnitTests (216)
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)
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);
MSBuildInternalMessage_Tests.cs (2)
24using (TestEnvironment env = TestEnvironment.Create())
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()) 598using (TestEnvironment testEnvironment = TestEnvironment.Create()) 642using (TestEnvironment env = TestEnvironment.Create()) 755using var env = TestEnvironment.Create();
SGen_Tests.cs (2)
22using (TestEnvironment testenv = TestEnvironment.Create())
TestAssemblyInfo.cs (5)
33private TestEnvironment _testEnvironment; 51_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 104private static void SetDotnetHostPath(TestEnvironment testEnvironment) 156private TestEnvironment _testEnvironment; 160_testEnvironment = TestEnvironment.Create();
Unzip_Tests.cs (28)
27using (TestEnvironment testEnvironment = TestEnvironment.Create()) 55using (TestEnvironment testEnvironment = TestEnvironment.Create()) 109using (TestEnvironment testEnvironment = TestEnvironment.Create()) 180using (TestEnvironment testEnvironment = TestEnvironment.Create()) 208using (TestEnvironment testEnvironment = TestEnvironment.Create()) 230using (TestEnvironment testEnvironment = TestEnvironment.Create()) 250using (TestEnvironment testEnvironment = TestEnvironment.Create()) 279using (TestEnvironment testEnvironment = TestEnvironment.Create()) 308using (TestEnvironment testEnvironment = TestEnvironment.Create()) 345using (TestEnvironment testEnvironment = TestEnvironment.Create()) 373using (TestEnvironment testEnvironment = TestEnvironment.Create()) 401using (TestEnvironment testEnvironment = TestEnvironment.Create()) 429using (TestEnvironment testEnvironment = TestEnvironment.Create()) 457using 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()) 1401using (var env = TestEnvironment.Create()) 1456using (var env = TestEnvironment.Create(testOutput)) 1470public static void ResetStateForDriveEnumeratingWildcardTests(TestEnvironment env, string setEnvVar) 1477public static void BuildTargetWithDriveEnumeratingWildcardUsingBuildManager(TestEnvironment env, string testProjectFile, string targetName, ExpectedBuildResult expectedBuildResult, ITestOutputHelper testOutput = null) 1683TestEnvironment env, 1691TestEnvironment env, 1741TestEnvironment env, 2061private readonly TestEnvironment _env; 2068TestEnvironment 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()); 831public 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; 51_testEnvironment = TestEnvironment.Create(output: null, ignoreBuildErrorFiles: true); 104private static void SetDotnetHostPath(TestEnvironment testEnvironment) 156private TestEnvironment _testEnvironment; 160_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()) 788using (TestEnvironment testEnvironment = TestEnvironment.Create()) 844using TestEnvironment testEnvironment = TestEnvironment.Create(_output); 912using var env = TestEnvironment.Create(_output); 943using var env = TestEnvironment.Create(_output);