1 write to Collection
Microsoft.Build.Engine.OM.UnitTests (1)
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
159
this.
Collection
= new ProjectCollection();
61 references to Collection
Microsoft.Build.Engine.OM.UnitTests (61)
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (6)
207
result.Add(this.Local, new HashSet<Project>(this.Local.
Collection
.LoadedProjects));
211
result.Add(r, new HashSet<Project>(r.
Collection
.LoadedProjects));
249
linker.
Collection
.UnloadAllProjects();
254
foreach (var p in linker.
Collection
.LoadedProjects)
264
linker.
Collection
.UnloadProject(p);
265
linker.
Collection
.UnloadProject(p.Xml);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (1)
467
=> VerifyProjectCollectionLinks(linker.
Collection
, path, expectedLocal, expectedLinks);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (4)
40
var viewProj = pcLocal.
Collection
.GetLoadedProjects(proj1Path).FirstOrDefault();
114
var viewProj = pcLocal.
Collection
.GetLoadedProjects(proj1Path).FirstOrDefault();
310
var viewProj = pcLocal.
Collection
.GetLoadedProjects(proj1Path).FirstOrDefault();
346
var viewProj = pcLocal.
Collection
.GetLoadedProjects(proj1Path).FirstOrDefault();
ObjectModelRemoting\LinkedProjectCollection_Tests.cs (44)
41
var loadedLocal = pcLocal.
Collection
.LoadedProjects;
42
var loadedRemote = pcRemote.
Collection
.LoadedProjects;
51
loadedLocal = pcLocal.
Collection
.LoadedProjects;
55
var localProj = pcLocal.
Collection
.GetLoadedProjects(proj1Path).FirstOrDefault();
58
var remoteProj = pcLocal.
Collection
.GetLoadedProjects(proj2Path).FirstOrDefault();
84
var loadedLocal = pcLocal.
Collection
.LoadedProjects;
85
var loadedRemote0 = pcRemote0.
Collection
.LoadedProjects;
86
var loadedRemote1 = pcRemote1.
Collection
.LoadedProjects;
94
var loadedWithExternal = pcLocal.
Collection
.LoadedProjects;
97
var prj0Coll = pcLocal.
Collection
.GetLoadedProjects(proj0Path);
101
var prj1Coll = pcLocal.
Collection
.GetLoadedProjects(proj1Path);
106
var prj2Coll = pcLocal.
Collection
.GetLoadedProjects(proj2Path);
115
var prj3Coll = pcLocal.
Collection
.GetLoadedProjects(proj3Path);
132
Assert.Equal(0, pcLocal.
Collection
.LoadedProjects.Count);
133
Assert.Equal(0, pcRemote.
Collection
.LoadedProjects.Count);
136
Assert.Equal(1, pcLocal.
Collection
.LoadedProjects.Count);
137
Assert.Equal(1, pcLocal.
Collection
.GetLoadedProjects(proj0Path).Count);
140
Assert.Equal(2, pcLocal.
Collection
.LoadedProjects.Count);
141
Assert.Equal(1, pcLocal.
Collection
.GetLoadedProjects(proj1Path).Count);
144
Assert.Equal(3, pcLocal.
Collection
.LoadedProjects.Count);
145
Assert.Equal(1, pcLocal.
Collection
.GetLoadedProjects(proj2Path).Count);
147
pcRemote.
Collection
.UnloadProject(proj1);
148
Assert.Equal(2, pcLocal.
Collection
.LoadedProjects.Count);
149
Assert.Equal(0, pcLocal.
Collection
.GetLoadedProjects(proj1Path).Count);
150
Assert.Equal(1, pcLocal.
Collection
.GetLoadedProjects(proj2Path).Count);
159
Assert.Equal(0, this.StdGroup.Local.
Collection
.LoadedProjects.Count);
160
Assert.Equal(0, this.StdGroup.Remote[0].
Collection
.LoadedProjects.Count);
161
Assert.Equal(0, this.StdGroup.Remote[1].
Collection
.LoadedProjects.Count);
164
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Local.
Collection
.LoadedProjects, 1, 0);
165
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].
Collection
.LoadedProjects, 0, 1);
166
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].
Collection
.LoadedProjects, 0, 1);
172
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Local.
Collection
.LoadedProjects, 2, 0);
173
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].
Collection
.LoadedProjects, 0, 2);
174
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].
Collection
.LoadedProjects, 0, 2);
180
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Local.
Collection
.LoadedProjects, 2, 1);
181
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].
Collection
.LoadedProjects, 1, 2);
182
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].
Collection
.LoadedProjects, 0, 3);
189
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Local.
Collection
.LoadedProjects, 2, 2);
190
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].
Collection
.LoadedProjects, 1, 3);
191
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].
Collection
.LoadedProjects, 1, 3);
196
this.StdGroup.Local.
Collection
.UnloadAllProjects();
198
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Local.
Collection
.LoadedProjects, 0, 2);
199
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[0].
Collection
.LoadedProjects, 1, 1);
200
ViewValidation.VerifyProjectCollectionLinks(this.StdGroup.Remote[1].
Collection
.LoadedProjects, 1, 1);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (6)
160
this.LinkFactory = LinkedObjectsFactory.Get(this.
Collection
);
163
public Project LoadProject(string path) => this.
Collection
.LoadProject(path);
167
public Project LoadProjectWithSettings(string path, ProjectLoadSettings settings) => new Project(path, null, null, this.
Collection
, settings);
175
Project project = new Project(xml, null, null, this.
Collection
, settings);
194
ExternalProjectsProvider.SetExternalProjectsProvider(this.
Collection
, value ? this : null);
362
var toRemote = LinkedObjectsFactory.GetLocalProjects(this.
Collection
, filePath);