1 instantiation of TestEnvironment
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
48
var env = new
TestEnvironment
(output ?? new DefaultOutput());
907 references to TestEnvironment
Microsoft.Build.BuildCheck.UnitTests (35)
ConfigurationProvider_Tests.cs (14)
21
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
42
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
69
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
102
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
127
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
158
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
190
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
EditorConfigParser_Tests.cs (4)
63
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
95
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
EndToEndTests.cs (10)
26
private readonly
TestEnvironment
_env;
30
_env =
TestEnvironment
.Create(output);
585
using (
var
env =
TestEnvironment
.Create())
765
using (
var
env =
TestEnvironment
.Create())
798
using (
var
env =
TestEnvironment
.Create())
826
using (
var
env =
TestEnvironment
.Create())
TaskInvocationAnalysisDataTests.cs (2)
83
using (
var
env =
TestEnvironment
.Create(_output))
TestAssemblyInfo.cs (5)
33
private
TestEnvironment
_testEnvironment;
51
_testEnvironment =
TestEnvironment
.Create(output: null, ignoreBuildErrorFiles: true);
104
private static void SetDotnetHostPath(
TestEnvironment
testEnvironment)
156
private
TestEnvironment
_testEnvironment;
160
_testEnvironment =
TestEnvironment
.Create();
Microsoft.Build.CommandLine.UnitTests (45)
CommandLineSwitches_Tests.cs (6)
1103
using (
TestEnvironment
env =
TestEnvironment
.Create())
1384
using (
TestEnvironment
env =
TestEnvironment
.Create())
1524
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
MSBuildServer_Tests.cs (2)
63
private readonly
TestEnvironment
_env;
87
_env =
TestEnvironment
.Create(_output);
PerfLog_Tests.cs (4)
26
using (
TestEnvironment
testEnv =
TestEnvironment
.Create(_output))
61
using (
TestEnvironment
testEnv =
TestEnvironment
.Create(_output))
TerminalLogger_Tests.cs (2)
711
using (
TestEnvironment
env =
TestEnvironment
.Create())
TestAssemblyInfo.cs (5)
33
private
TestEnvironment
_testEnvironment;
51
_testEnvironment =
TestEnvironment
.Create(output: null, ignoreBuildErrorFiles: true);
104
private static void SetDotnetHostPath(
TestEnvironment
testEnvironment)
156
private
TestEnvironment
_testEnvironment;
160
_testEnvironment =
TestEnvironment
.Create();
XMake_Tests.cs (26)
39
private readonly
TestEnvironment
_env;
44
_env = UnitTests.
TestEnvironment
.Create(_output);
531
using
TestEnvironment
env =
TestEnvironment
.Create();
575
using
TestEnvironment
env =
TestEnvironment
.Create();
711
using
TestEnvironment
env =
TestEnvironment
.Create();
747
using
TestEnvironment
env =
TestEnvironment
.Create();
801
using
TestEnvironment
env =
TestEnvironment
.Create();
820
using
TestEnvironment
env =
TestEnvironment
.Create();
850
using
TestEnvironment
env =
TestEnvironment
.Create();
912
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
1126
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
1280
using (
TestEnvironment
env =
TestEnvironment
.Create())
2646
using
TestEnvironment
testEnvironment = UnitTests.
TestEnvironment
.Create();
2700
using
TestEnvironment
testEnvironment = UnitTests.
TestEnvironment
.Create();
Microsoft.Build.Engine.OM.UnitTests (94)
Construction\ConstructionEditing_Tests.cs (2)
3209
using (
var
env =
TestEnvironment
.Create())
Construction\ProjectRootElement_Tests.cs (8)
1290
using (
var
env =
TestEnvironment
.Create())
1329
using (
var
env =
TestEnvironment
.Create())
1591
using (
var
env =
TestEnvironment
.Create())
1731
using (
var
env =
TestEnvironment
.Create())
Construction\ProjectTargetElement_Tests.cs (2)
346
using (
TestEnvironment
env =
TestEnvironment
.Create())
Construction\SolutionFile_Tests.cs (2)
687
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
Definition\DefinitionEditing_Tests.cs (2)
1697
using (
var
env =
TestEnvironment
.Create())
Definition\Project_Tests.cs (34)
1443
using (
var
env =
TestEnvironment
.Create())
1508
using (
var
env =
TestEnvironment
.Create())
1594
using (
var
env =
TestEnvironment
.Create())
3250
using (
var
env =
TestEnvironment
.Create())
3278
using (
var
env =
TestEnvironment
.Create())
3571
using (
var
env =
TestEnvironment
.Create())
3764
using (
var
env =
TestEnvironment
.Create())
3841
using (
var
env =
TestEnvironment
.Create())
3860
using (
var
env =
TestEnvironment
.Create())
3889
using (
var
env =
TestEnvironment
.Create(_output))
3932
using (
var
env =
TestEnvironment
.Create(_output))
3971
using (
var
env =
TestEnvironment
.Create(_output))
4016
using (
var
env =
TestEnvironment
.Create(_output))
4063
using (
var
env =
TestEnvironment
.Create(_output))
4103
using (
var
env =
TestEnvironment
.Create(_output))
4146
using (
var
env =
TestEnvironment
.Create(_output))
4191
using (
var
env =
TestEnvironment
.Create(_output))
Definition\ProjectItem_Tests.cs (37)
59
protected readonly
TestEnvironment
_env;
64
_env =
TestEnvironment
.Create();
449
using (
TestEnvironment
env =
TestEnvironment
.Create())
778
using (
var
env =
TestEnvironment
.Create())
825
using (
var
env =
TestEnvironment
.Create())
933
using (
var
env =
TestEnvironment
.Create())
944
private static void CreateProjectInstanceFromFileWithDriveEnumeratingWildcard(
TestEnvironment
env, string testProjectFile, bool throwException)
1098
using (
var
env =
TestEnvironment
.Create())
1151
using (
var
env =
TestEnvironment
.Create())
1171
using (
var
env =
TestEnvironment
.Create())
2155
using (
var
env =
TestEnvironment
.Create())
2181
using (
var
env =
TestEnvironment
.Create())
2212
using (
var
env =
TestEnvironment
.Create())
2272
using (
var
env =
TestEnvironment
.Create())
2554
using (
var
env =
TestEnvironment
.Create())
2591
using (
var
env =
TestEnvironment
.Create())
3117
using
var
env =
TestEnvironment
.Create();
3317
using
var
env =
TestEnvironment
.Create();
3707
using (
var
env =
TestEnvironment
.Create())
3746
using (
var
env =
TestEnvironment
.Create())
NugetRestoreTests.cs (2)
27
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
TestAssemblyInfo.cs (5)
33
private
TestEnvironment
_testEnvironment;
51
_testEnvironment =
TestEnvironment
.Create(output: null, ignoreBuildErrorFiles: true);
104
private static void SetDotnetHostPath(
TestEnvironment
testEnvironment)
156
private
TestEnvironment
_testEnvironment;
160
_testEnvironment =
TestEnvironment
.Create();
Microsoft.Build.Engine.UnitTests (442)
BackEnd\BuildManager_Logging_Tests.cs (2)
62
private readonly
TestEnvironment
_env;
78
_env =
TestEnvironment
.Create(output);
BackEnd\BuildManager_Tests.cs (8)
60
private readonly
TestEnvironment
_env;
87
_env =
TestEnvironment
.Create(output);
3688
using (
var
env =
TestEnvironment
.Create())
4025
using (
var
env =
TestEnvironment
.Create(_output))
4077
using (
var
env =
TestEnvironment
.Create())
BackEnd\BuildRequestConfiguration_Tests.cs (2)
27
private
TestEnvironment
_env;
31
_env =
TestEnvironment
.Create(testOutput);
BackEnd\CacheAggregator_Tests.cs (12)
49
using (
var
env =
TestEnvironment
.Create())
62
using (
var
env =
TestEnvironment
.Create())
88
using (
var
env =
TestEnvironment
.Create())
115
using (
var
env =
TestEnvironment
.Create())
138
using (
var
env =
TestEnvironment
.Create())
169
using (
var
env =
TestEnvironment
.Create())
BackEnd\GenerateTemporaryTargetAssembly_Tests.cs (2)
19
using (
TestEnvironment
testenv =
TestEnvironment
.Create())
BackEnd\IntrinsicTask_Tests.cs (4)
1824
using (
var
env =
TestEnvironment
.Create())
2523
using (
var
env =
TestEnvironment
.Create())
BackEnd\MSBuild_Tests.cs (6)
778
using
TestEnvironment
env =
TestEnvironment
.Create();
809
using
TestEnvironment
env =
TestEnvironment
.Create();
853
using
TestEnvironment
env =
TestEnvironment
.Create();
BackEnd\ResultsCache_Tests.cs (2)
405
using (
var
env =
TestEnvironment
.Create())
BackEnd\SdkResolverLoader_Tests.cs (14)
218
using (
var
env =
TestEnvironment
.Create(_output))
243
using (
var
env =
TestEnvironment
.Create(_output))
270
using (
var
env =
TestEnvironment
.Create(_output))
294
using (
var
env =
TestEnvironment
.Create(_output))
310
using (
var
env =
TestEnvironment
.Create(_output))
334
using (
var
env =
TestEnvironment
.Create(_output))
362
using (
var
env =
TestEnvironment
.Create(_output))
BackEnd\SdkResultOutOfProc_Tests.cs (2)
48
private readonly
TestEnvironment
_env;
67
_env =
TestEnvironment
.Create(output);
BackEnd\TargetBuilder_Tests.cs (4)
217
using (
var
env =
TestEnvironment
.Create())
254
using (
var
env =
TestEnvironment
.Create())
BackEnd\TaskBuilder_Tests.cs (6)
92
using
TestEnvironment
env =
TestEnvironment
.Create();
144
using (
TestEnvironment
env =
TestEnvironment
.Create(_testOutput))
658
using
var
env =
TestEnvironment
.Create();
BackEnd\TaskExecutionHost_Tests.cs (2)
1063
using
TestEnvironment
env =
TestEnvironment
.Create();
BackEnd\TaskHostFactory_Tests.cs (4)
33
using (
TestEnvironment
env =
TestEnvironment
.Create())
67
using
TestEnvironment
env =
TestEnvironment
.Create(_output);
BackEnd\TaskRegistry_Tests.cs (2)
658
using (
var
env =
TestEnvironment
.Create(_output))
BinaryLogger_Tests.cs (10)
77
private readonly
TestEnvironment
_env;
82
_env =
TestEnvironment
.Create(output);
335
using (
TestEnvironment
env =
TestEnvironment
.Create())
380
using (
TestEnvironment
env =
TestEnvironment
.Create())
569
using
var
env =
TestEnvironment
.Create();
613
using (
TestEnvironment
env =
TestEnvironment
.Create())
ChangeWaves_Tests.cs (18)
31
private void SetChangeWave(string wave,
TestEnvironment
env)
46
private void buildSimpleProjectAndValidateChangeWave(
TestEnvironment
testEnvironment, Version versionToCheckAgainstCurrentChangeWave, Version currentChangeWaveShouldUltimatelyResolveTo, params string[] warningCodesLogShouldContain)
82
using (
TestEnvironment
env =
TestEnvironment
.Create())
103
using (
TestEnvironment
env =
TestEnvironment
.Create())
124
using (
TestEnvironment
env =
TestEnvironment
.Create())
141
using (
TestEnvironment
env =
TestEnvironment
.Create())
161
using (
TestEnvironment
env =
TestEnvironment
.Create())
185
using (
TestEnvironment
env =
TestEnvironment
.Create())
199
using (
TestEnvironment
env =
TestEnvironment
.Create())
222
using (
TestEnvironment
env =
TestEnvironment
.Create())
ConsoleLogger_Tests.cs (6)
191
using
var
env =
TestEnvironment
.Create(_output);
231
using
var
env =
TestEnvironment
.Create(_output);
274
using
var
env =
TestEnvironment
.Create(_output);
Construction\ProjectImportElement_Tests.cs (6)
20
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
57
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
97
using (
var
env =
TestEnvironment
.Create())
Construction\ProjectRootElement_Tests.cs (4)
68
using (
var
env =
TestEnvironment
.Create())
99
using (
var
env =
TestEnvironment
.Create())
Construction\SolutionFile_NewParser_Tests.cs (2)
136
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
Construction\SolutionFile_OldParser_Tests.cs (4)
297
using (
var
env =
TestEnvironment
.Create())
771
using (
var
env =
TestEnvironment
.Create())
Construction\SolutionFilter_Tests.cs (6)
51
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
211
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
229
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
Construction\SolutionProjectGenerator_Tests.cs (10)
67
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
89
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
134
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
210
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
881
using (
TestEnvironment
env =
TestEnvironment
.Create())
Definition\Project_Internal_Tests.cs (8)
234
using (
var
env =
TestEnvironment
.Create())
271
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
299
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
327
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
Definition\ProjectEvaluationContext_Tests.cs (2)
32
_env =
TestEnvironment
.Create();
48
private readonly
TestEnvironment
_env;
Evaluation\EvaluationLogging_Tests.cs (2)
73
using (
var
env =
TestEnvironment
.Create())
Evaluation\Evaluator_Tests.cs (20)
56
using
TestEnvironment
env =
TestEnvironment
.Create();
74
using (
TestEnvironment
env =
TestEnvironment
.Create())
944
using (
TestEnvironment
env =
TestEnvironment
.Create())
1707
using (
var
env =
TestEnvironment
.Create())
1791
using (
var
env =
TestEnvironment
.Create())
4574
using (
var
env =
TestEnvironment
.Create())
4623
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
4652
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
5007
using (
TestEnvironment
env =
TestEnvironment
.Create())
5055
using (
TestEnvironment
env =
TestEnvironment
.Create())
Evaluation\Expander_Tests.cs (24)
2589
using (
var
env =
TestEnvironment
.Create())
4778
using (
var
env =
TestEnvironment
.Create())
4822
using (
var
env =
TestEnvironment
.Create())
4857
using (
var
env =
TestEnvironment
.Create())
4897
using (
var
env =
TestEnvironment
.Create())
4938
using (
var
env =
TestEnvironment
.Create())
4978
using (
var
env =
TestEnvironment
.Create())
5021
using (
var
env =
TestEnvironment
.Create())
5067
using (
var
env =
TestEnvironment
.Create())
5098
using (
var
env =
TestEnvironment
.Create())
5127
using (
var
env =
TestEnvironment
.Create())
5167
using (
var
env =
TestEnvironment
.Create())
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (2)
865
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
Evaluation\IntrinsicFunctionOverload_Tests.cs (40)
33
using
TestEnvironment
env =
TestEnvironment
.Create();
55
using
TestEnvironment
env =
TestEnvironment
.Create();
77
using
TestEnvironment
env =
TestEnvironment
.Create();
99
using
TestEnvironment
env =
TestEnvironment
.Create();
121
using
TestEnvironment
env =
TestEnvironment
.Create();
141
using
TestEnvironment
env =
TestEnvironment
.Create();
163
using
TestEnvironment
env =
TestEnvironment
.Create();
185
using
TestEnvironment
env =
TestEnvironment
.Create();
207
using
TestEnvironment
env =
TestEnvironment
.Create();
227
using
TestEnvironment
env =
TestEnvironment
.Create();
249
using
TestEnvironment
env =
TestEnvironment
.Create();
271
using
TestEnvironment
env =
TestEnvironment
.Create();
293
using
TestEnvironment
env =
TestEnvironment
.Create();
313
using
TestEnvironment
env =
TestEnvironment
.Create();
335
using
TestEnvironment
env =
TestEnvironment
.Create();
357
using
TestEnvironment
env =
TestEnvironment
.Create();
379
using
TestEnvironment
env =
TestEnvironment
.Create();
399
using
TestEnvironment
env =
TestEnvironment
.Create();
421
using
TestEnvironment
env =
TestEnvironment
.Create();
443
using
TestEnvironment
env =
TestEnvironment
.Create();
Evaluation\ItemEvaluation_Tests.cs (6)
588
using (
var
env =
TestEnvironment
.Create())
651
using
var
env =
TestEnvironment
.Create();
681
using (
var
env =
TestEnvironment
.Create())
Evaluation\Preprocessor_Tests.cs (6)
848
using (
TestEnvironment
env =
TestEnvironment
.Create())
938
using (
TestEnvironment
env =
TestEnvironment
.Create())
1053
using (
TestEnvironment
env =
TestEnvironment
.Create())
Evaluation\ProjectCollection_Tests.cs (2)
22
using (
TestEnvironment
env =
TestEnvironment
.Create())
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
70
private
TestEnvironment
_env;
86
_env =
TestEnvironment
.Create();
Evaluation\SdkResultEvaluation_Tests.cs (2)
24
private
TestEnvironment
_env;
35
_env =
TestEnvironment
.Create();
EvaluationProfiler_Tests.cs (2)
29
private readonly
TestEnvironment
_env;
63
_env =
TestEnvironment
.Create(output);
FileLogger_Tests.cs (4)
360
using (
var
env =
TestEnvironment
.Create())
396
using (
var
testEnvironment =
TestEnvironment
.Create())
FileMatcher_Tests.cs (8)
25
private readonly
TestEnvironment
_env;
30
_env =
TestEnvironment
.Create(output);
1283
using (
var
env =
TestEnvironment
.Create())
1349
using (
var
env =
TestEnvironment
.Create())
1388
using (
var
env =
TestEnvironment
.Create())
Graph\GetCompatiblePlatformGraph_Tests.cs (22)
40
using (
var
env =
TestEnvironment
.Create())
67
using (
var
env =
TestEnvironment
.Create())
108
using (
var
env =
TestEnvironment
.Create())
150
using (
var
env =
TestEnvironment
.Create())
191
using (
var
env =
TestEnvironment
.Create())
218
using (
var
env =
TestEnvironment
.Create())
246
using (
var
env =
TestEnvironment
.Create())
273
using (
var
env =
TestEnvironment
.Create())
301
using (
var
env =
TestEnvironment
.Create())
331
using (
var
env =
TestEnvironment
.Create())
359
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
Graph\GraphLoadedFromSolution_tests.cs (2)
27
private
TestEnvironment
_env;
31
_env =
TestEnvironment
.Create(output);
Graph\GraphTestingUtilities.cs (1)
197
TestEnvironment
env,
Graph\IsolateProjects_Tests.cs (3)
131
private
TestEnvironment
_env;
137
_env =
TestEnvironment
.Create(_testOutput, ignoreBuildErrorFiles: true);
559
TransientTestFile CreateTmpFile(
TestEnvironment
env)
Graph\ProjectGraph_Tests.cs (90)
30
private
TestEnvironment
_env;
44
_env =
TestEnvironment
.Create(outputHelper);
62
using (
var
env =
TestEnvironment
.Create())
89
using (
var
env =
TestEnvironment
.Create())
100
using (
var
env =
TestEnvironment
.Create())
132
using (
var
env =
TestEnvironment
.Create())
179
using (
var
env =
TestEnvironment
.Create())
203
using (
var
env =
TestEnvironment
.Create())
225
using (
var
env =
TestEnvironment
.Create())
249
using (
var
env =
TestEnvironment
.Create())
303
using (
var
env =
TestEnvironment
.Create())
317
using (
var
env =
TestEnvironment
.Create())
330
using (
var
env =
TestEnvironment
.Create())
387
using (
var
env =
TestEnvironment
.Create())
420
using (
var
env =
TestEnvironment
.Create())
439
using (
var
env =
TestEnvironment
.Create())
479
using (
var
env =
TestEnvironment
.Create())
510
using (
var
env =
TestEnvironment
.Create())
552
using (
var
env =
TestEnvironment
.Create())
573
using (
var
env =
TestEnvironment
.Create())
594
using (
var
env =
TestEnvironment
.Create())
628
using (
var
env =
TestEnvironment
.Create())
665
using (
var
env =
TestEnvironment
.Create())
696
using (
var
env =
TestEnvironment
.Create())
917
using (
var
env =
TestEnvironment
.Create())
946
using (
var
env =
TestEnvironment
.Create())
974
using (
var
env =
TestEnvironment
.Create())
1000
using (
var
env =
TestEnvironment
.Create())
1018
using (
var
env =
TestEnvironment
.Create())
1036
using (
var
env =
TestEnvironment
.Create())
1059
using (
var
env =
TestEnvironment
.Create())
1082
using (
var
env =
TestEnvironment
.Create())
1097
using (
var
env =
TestEnvironment
.Create())
1126
using (
var
env =
TestEnvironment
.Create())
1167
using (
var
env =
TestEnvironment
.Create())
1283
using (
var
env =
TestEnvironment
.Create())
1389
using (
var
env =
TestEnvironment
.Create())
1407
using (
var
env =
TestEnvironment
.Create())
1437
using (
var
env =
TestEnvironment
.Create())
1471
using (
var
env =
TestEnvironment
.Create())
1628
using (
var
env =
TestEnvironment
.Create())
1809
using (
var
env =
TestEnvironment
.Create())
2325
using (
var
env =
TestEnvironment
.Create())
2344
using (
var
env =
TestEnvironment
.Create())
2833
using (
var
env =
TestEnvironment
.Create())
2889
using (
var
env =
TestEnvironment
.Create())
Graph\ResultCacheBasedBuilds_Tests.cs (5)
33
_env =
TestEnvironment
.Create(_output);
44
private readonly
TestEnvironment
_env;
424
TestEnvironment
env,
512
private static TransientTestFile CreateProjectFileWrapper(
TestEnvironment
env, int projectNumber, int[] projectReferences, Dictionary<string, string[]> projectReferenceTargets, string defaultTargets, string extraContent)
518
TestEnvironment
env,
Instance\ProjectInstance_Internal_Tests.cs (6)
763
using (
var
env =
TestEnvironment
.Create())
891
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
919
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
PrintLineDebugger_Tests.cs (8)
112
using (
var
env =
TestEnvironment
.Create())
204
using (
var
env =
TestEnvironment
.Create())
226
using (
var
env =
TestEnvironment
.Create())
248
using (
var
env =
TestEnvironment
.Create())
ProjectCache\ProjectCacheTests.cs (3)
34
_env =
TestEnvironment
.Create(output);
107
public ProjectGraph CreateGraph(
TestEnvironment
env)
328
private readonly
TestEnvironment
_env;
SolutionFileBuilder.cs (1)
79
TestEnvironment
env,
TerminalLoggerConfiguration_Tests.cs (2)
23
private readonly
TestEnvironment
_env;
29
_env =
TestEnvironment
.Create(output);
TestAssemblyInfo.cs (5)
33
private
TestEnvironment
_testEnvironment;
51
_testEnvironment =
TestEnvironment
.Create(output: null, ignoreBuildErrorFiles: true);
104
private static void SetDotnetHostPath(
TestEnvironment
testEnvironment)
156
private
TestEnvironment
_testEnvironment;
160
_testEnvironment =
TestEnvironment
.Create();
TypeLoader_Tests.cs (2)
99
using (
TestEnvironment
env =
TestEnvironment
.Create())
Utilities_Tests.cs (2)
75
using
TestEnvironment
env =
TestEnvironment
.Create();
WarningsAsMessagesAndErrors_Tests.cs (22)
44
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create(_output))
138
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create(_output))
287
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
319
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
376
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
405
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
427
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
452
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
474
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
494
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
514
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
Microsoft.Build.Framework.UnitTests (5)
TestAssemblyInfo.cs (5)
33
private
TestEnvironment
_testEnvironment;
51
_testEnvironment =
TestEnvironment
.Create(output: null, ignoreBuildErrorFiles: true);
104
private static void SetDotnetHostPath(
TestEnvironment
testEnvironment)
156
private
TestEnvironment
_testEnvironment;
160
_testEnvironment =
TestEnvironment
.Create();
Microsoft.Build.Tasks.UnitTests (224)
AddToWin32Manifest_Tests.cs (4)
42
using (
TestEnvironment
env =
TestEnvironment
.Create())
80
using (
TestEnvironment
env =
TestEnvironment
.Create())
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (6)
122
using (
TestEnvironment
env =
TestEnvironment
.Create())
158
using (
TestEnvironment
env =
TestEnvironment
.Create())
184
using (
TestEnvironment
env =
TestEnvironment
.Create())
CodeTaskFactoryEmbeddedFileInBinlogTestHelper.cs (4)
28
using
var
env =
TestEnvironment
.Create();
104
using
var
env =
TestEnvironment
.Create();
Copy_Tests.cs (32)
143
using (
var
env =
TestEnvironment
.Create())
167
using (
var
env =
TestEnvironment
.Create())
192
using (
var
env =
TestEnvironment
.Create())
236
using (
var
env =
TestEnvironment
.Create())
259
using (
var
env =
TestEnvironment
.Create())
290
using (
var
env =
TestEnvironment
.Create())
314
using (
var
env =
TestEnvironment
.Create())
338
using (
var
env =
TestEnvironment
.Create())
361
using (
var
env =
TestEnvironment
.Create())
385
using (
var
env =
TestEnvironment
.Create())
409
using (
var
env =
TestEnvironment
.Create())
434
using (
var
env =
TestEnvironment
.Create())
460
using (
var
env =
TestEnvironment
.Create())
1102
using (
var
env =
TestEnvironment
.Create())
2522
using (
var
env =
TestEnvironment
.Create())
2941
using
TestEnvironment
env =
TestEnvironment
.Create();
CreateCSharpManifestResourceName_Tests.cs (14)
384
using (
var
env =
TestEnvironment
.Create(_testOutput))
416
using (
var
env =
TestEnvironment
.Create())
454
using (
var
env =
TestEnvironment
.Create())
487
using (
var
env =
TestEnvironment
.Create())
521
using (
var
env =
TestEnvironment
.Create())
552
using (
var
env =
TestEnvironment
.Create())
586
using (
var
env =
TestEnvironment
.Create(_testOutput))
CreateItem_Tests.cs (6)
193
using
var
env =
TestEnvironment
.Create(_testOutput);
296
using (
var
env =
TestEnvironment
.Create())
348
using (
var
env =
TestEnvironment
.Create())
DownloadFile_Tests.cs (12)
30
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
59
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
107
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
137
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
202
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
315
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
Exec_Tests.cs (14)
60
using (
var
testEnvironment =
TestEnvironment
.Create())
78
using (
var
env =
TestEnvironment
.Create())
116
using (
var
testEnvironment =
TestEnvironment
.Create())
533
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
933
using (
var
env =
TestEnvironment
.Create(_output))
986
using (
var
env =
TestEnvironment
.Create(_output))
1038
using (
var
env =
TestEnvironment
.Create(_output))
GenerateBindingRedirects_Tests.cs (4)
23
private readonly
TestEnvironment
_env;
28
_env =
TestEnvironment
.Create(output);
265
using (
TestEnvironment
env =
TestEnvironment
.Create())
GetSDKReference_Tests.cs (2)
276
using (
TestEnvironment
env =
TestEnvironment
.Create())
HintPathResolver_Tests.cs (2)
19
private readonly
TestEnvironment
_env;
23
_env =
TestEnvironment
.Create(testOutput);
MSBuildInternalMessage_Tests.cs (10)
25
using (
TestEnvironment
env =
TestEnvironment
.Create())
70
using (
TestEnvironment
env =
TestEnvironment
.Create())
116
using (
TestEnvironment
env =
TestEnvironment
.Create())
194
using (
TestEnvironment
env =
TestEnvironment
.Create())
248
using (
TestEnvironment
env =
TestEnvironment
.Create())
PortableTasks_Tests.cs (2)
47
using (
TestEnvironment
env =
TestEnvironment
.Create(_outputHelper))
PrintLineDebugger_Tests.cs (8)
112
using (
var
env =
TestEnvironment
.Create())
204
using (
var
env =
TestEnvironment
.Create())
226
using (
var
env =
TestEnvironment
.Create())
248
using (
var
env =
TestEnvironment
.Create())
RARPrecomputedCache_Tests.cs (6)
22
using (
TestEnvironment
env =
TestEnvironment
.Create())
57
using (
TestEnvironment
env =
TestEnvironment
.Create())
109
using (
TestEnvironment
env =
TestEnvironment
.Create())
RemoveDir_Tests.cs (4)
50
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
99
using (
TestEnvironment
env =
TestEnvironment
.Create(_output))
ResourceHandling\GenerateResource_Tests.cs (11)
27
private readonly
TestEnvironment
_env;
32
_env =
TestEnvironment
.Create(output);
2000
using
TestEnvironment
env =
TestEnvironment
.Create();
2076
using
var
env =
TestEnvironment
.Create(_output);
3667
using (
var
env =
TestEnvironment
.Create())
3898
TestEnvironment
env = null,
4096
public static string WriteTestResX(bool useType, string linkedBitmap, string extraToken, string resxFileToWrite = null,
TestEnvironment
env = null)
4107
public static string WriteTestResX(bool useType, string linkedBitmap, string extraToken, bool useInvalidType, string resxFileToWrite = null,
TestEnvironment
env = null)
ResourceHandling\MSBuildResXReader_Tests.cs (4)
154
using (
var
env =
TestEnvironment
.Create(_output))
291
using
var
env =
TestEnvironment
.Create(_output);
ResourceManagement_Tests.cs (2)
145
using
var
env =
TestEnvironment
.Create();
RoslynCodeTaskFactory_Tests.cs (20)
48
using (
TestEnvironment
env =
TestEnvironment
.Create())
89
using (
TestEnvironment
env =
TestEnvironment
.Create())
201
using
var
env =
TestEnvironment
.Create();
292
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
389
using (
TestEnvironment
env =
TestEnvironment
.Create())
406
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
422
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
598
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
642
using (
TestEnvironment
env =
TestEnvironment
.Create())
755
using
var
env =
TestEnvironment
.Create();
SGen_Tests.cs (2)
22
using (
TestEnvironment
testenv =
TestEnvironment
.Create())
TestAssemblyInfo.cs (5)
33
private
TestEnvironment
_testEnvironment;
51
_testEnvironment =
TestEnvironment
.Create(output: null, ignoreBuildErrorFiles: true);
104
private static void SetDotnetHostPath(
TestEnvironment
testEnvironment)
156
private
TestEnvironment
_testEnvironment;
160
_testEnvironment =
TestEnvironment
.Create();
Unzip_Tests.cs (28)
27
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
55
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
109
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
180
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
208
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
230
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
250
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
279
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
308
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
345
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
373
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
401
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
429
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
457
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
WriteCodeFragment_Tests.cs (8)
103
using
TestEnvironment
env =
TestEnvironment
.Create();
126
using
TestEnvironment
env =
TestEnvironment
.Create();
146
using
TestEnvironment
env =
TestEnvironment
.Create();
395
using
TestEnvironment
env =
TestEnvironment
.Create();
WriteLinesToFile_Tests.cs (8)
160
using
TestEnvironment
testEnv =
TestEnvironment
.Create(_output);
298
using (
var
testEnv =
TestEnvironment
.Create())
326
using (
var
testEnv =
TestEnvironment
.Create())
353
using (
var
testEnv =
TestEnvironment
.Create())
ZipDirectory_Tests.cs (6)
25
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
66
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
108
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
Microsoft.Build.UnitTests.Shared (17)
ObjectModelHelpers.cs (13)
141
using (
var
env =
TestEnvironment
.Create())
1402
using (
var
env =
TestEnvironment
.Create())
1457
using (
var
env =
TestEnvironment
.Create(testOutput))
1471
public static void ResetStateForDriveEnumeratingWildcardTests(
TestEnvironment
env, string setEnvVar)
1478
public static void BuildTargetWithDriveEnumeratingWildcardUsingBuildManager(
TestEnvironment
env, string testProjectFile, string targetName, ExpectedBuildResult expectedBuildResult, ITestOutputHelper testOutput = null)
1686
TestEnvironment
env,
1694
TestEnvironment
env,
1744
TestEnvironment
env,
2064
private readonly
TestEnvironment
_env;
2071
TestEnvironment
env,
RunnerUtilities.cs (1)
23
public static void ApplyDotnetHostPathEnvironmentVariable(
TestEnvironment
testEnvironment)
TestEnvironment.cs (3)
46
public static
TestEnvironment
Create(ITestOutputHelper output = null, bool ignoreBuildErrorFiles = false)
48
var
env = new TestEnvironment(output ?? new DefaultOutput());
831
public TransientPrintLineDebugger(
TestEnvironment
environment, CommonWriterType writer)
Microsoft.Build.Utilities.UnitTests (45)
EncodingUtilities_Tests.cs (2)
49
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create();
PrintLineDebugger_Tests.cs (8)
112
using (
var
env =
TestEnvironment
.Create())
204
using (
var
env =
TestEnvironment
.Create())
226
using (
var
env =
TestEnvironment
.Create())
248
using (
var
env =
TestEnvironment
.Create())
TestAssemblyInfo.cs (5)
33
private
TestEnvironment
_testEnvironment;
51
_testEnvironment =
TestEnvironment
.Create(output: null, ignoreBuildErrorFiles: true);
104
private static void SetDotnetHostPath(
TestEnvironment
testEnvironment)
156
private
TestEnvironment
_testEnvironment;
160
_testEnvironment =
TestEnvironment
.Create();
ToolLocationHelper_Tests.cs (20)
2500
using (
var
env =
TestEnvironment
.Create())
2529
using (
var
env =
TestEnvironment
.Create())
2552
using (
var
env =
TestEnvironment
.Create())
2585
using (
var
env =
TestEnvironment
.Create())
2598
using (
var
env =
TestEnvironment
.Create())
2615
using (
var
env =
TestEnvironment
.Create())
2632
using (
var
env =
TestEnvironment
.Create())
2647
using (
var
env =
TestEnvironment
.Create())
2664
using (
var
env =
TestEnvironment
.Create())
2676
private void CheckGetPathToReferenceAssemblies(
TestEnvironment
env, string customFrameworkDir, string fallbackSearchPaths, Func<string, string, string, string, string, IList<string>> getPathToReferenceAssemblies)
2718
private static string CreateNewFrameworkAndGetAssembliesPath(
TestEnvironment
env, string frameworkName, string frameworkVersion, string rootDir)
ToolTask_Tests.cs (10)
657
using (
var
env =
TestEnvironment
.Create())
788
using (
TestEnvironment
testEnvironment =
TestEnvironment
.Create())
844
using
TestEnvironment
testEnvironment =
TestEnvironment
.Create(_output);
912
using
var
env =
TestEnvironment
.Create(_output);
943
using
var
env =
TestEnvironment
.Create(_output);