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