1 write to Collection
Microsoft.Build.UnitTests.Shared (1)
EngineTestEnvironment.cs (1)
278
Collection
= new ProjectCollection();
52 references to Collection
Microsoft.Build.Engine.OM.UnitTests (13)
Construction\ProjectRootElement_Tests.cs (3)
1593
var projectCollection1 = env.CreateProjectCollection().
Collection
;
1594
var projectCollection2 = env.CreateProjectCollection().
Collection
;
1733
var projectCollection = env.CreateProjectCollection().
Collection
;
Definition\Project_Tests.cs (4)
3252
var projectCollection = env.CreateProjectCollection().
Collection
;
3280
var projectCollection = env.CreateProjectCollection().
Collection
;
3766
var projectCollection = env.CreateProjectCollection().
Collection
;
3862
var projectCollection = env.CreateProjectCollection().
Collection
;
Definition\ProjectItem_Tests.cs (6)
2157
var project = ObjectModelHelpers.CreateInMemoryProject(env.CreateProjectCollection().
Collection
, projectContents);
2183
var project = ObjectModelHelpers.CreateInMemoryProject(env.CreateProjectCollection().
Collection
, projectContents);
2216
var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().
Collection
);
2276
var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().
Collection
);
2556
var project = ObjectModelHelpers.CreateInMemoryProject(env.CreateProjectCollection().
Collection
, content);
2593
var project = ObjectModelHelpers.CreateInMemoryProject(env.CreateProjectCollection().
Collection
, content);
Microsoft.Build.Engine.UnitTests (34)
BackEnd\BuildRequestConfiguration_Tests.cs (1)
557
var projectCollection = _env.CreateProjectCollection().
Collection
;
ConsoleLogger_Tests.cs (10)
216
pc.
Collection
.RegisterLogger(logger);
217
var p = pc.
Collection
.LoadProject(project.ProjectFile);
220
new BuildParameters(pc.
Collection
),
256
pc.
Collection
.RegisterLogger(logger);
258
var p = pc.
Collection
.LoadProject(project.ProjectFile);
261
new BuildParameters(pc.
Collection
),
280
pc.
Collection
.LoggingService.SetIncludeEvaluationPropertiesAndItemsInEvents(inProjectStartedEvent: false, inEvaluationFinishedEvent: true);
308
pc.
Collection
.RegisterLogger(logger);
310
var p = pc.
Collection
.LoadProject(project.ProjectFile);
313
new BuildParameters(pc.
Collection
),
Construction\SolutionFilter_Tests.cs (1)
128
ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().
Collection
;
Definition\Project_Internal_Tests.cs (4)
236
var projectCollection = env.CreateProjectCollection().
Collection
;
273
ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().
Collection
;
301
ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().
Collection
;
329
ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().
Collection
;
Definition\ProjectEvaluationContext_Tests.cs (5)
104
var projectCollection = _env.CreateProjectCollection().
Collection
;
146
var projectCollection = _env.CreateProjectCollection().
Collection
;
201
var collection = _env.CreateProjectCollection().
Collection
;
241
var collection = _env.CreateProjectCollection().
Collection
;
986
var collection = _env.CreateProjectCollection().
Collection
;
Evaluation\EvaluationLogging_Tests.cs (1)
75
var collection = env.CreateProjectCollection().
Collection
;
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
366
var pc = _env.CreateProjectCollection().
Collection
;
475
ProjectCollection projectCollection = _env.CreateProjectCollection().
Collection
;
Evaluation\SdkResultEvaluation_Tests.cs (1)
42
_projectCollection = _env.CreateProjectCollection().
Collection
;
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
439
ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().
Collection
;
Graph\GraphLoadedFromSolution_tests.cs (1)
687
_env.CreateProjectCollection().
Collection
);
Graph\IsolateProjects_Tests.cs (1)
325
_env.CreateProjectCollection().
Collection
);
Graph\ProjectGraph_Tests.cs (1)
360
var collection = _env.CreateProjectCollection().
Collection
;
Graph\ResultCacheBasedBuilds_Tests.cs (2)
150
.
Collection
305
var collection = _env.CreateProjectCollection().
Collection
;
Instance\ProjectInstance_Internal_Tests.cs (3)
766
var projectCollection = env.CreateProjectCollection().
Collection
;
893
ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().
Collection
;
921
ProjectCollection projectCollection = testEnvironment.CreateProjectCollection().
Collection
;
Microsoft.Build.UnitTests.Shared (5)
EngineTestEnvironment.cs (4)
283
Collection
.UnloadAllProjects();
284
Collection
.UnregisterAllLoggers();
285
Collection
.RemoveAllToolsets();
286
Collection
.Dispose();
ObjectModelHelpers.cs (1)
1807
.
Collection
);