1 write to Parts
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\TestComposition.cs (1)
80
Parts
= parts;
17 references to Parts
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (11)
MEF\TestComposition.cs (11)
66
/// All subtypes of types specified in <see cref="ExcludedPartTypes"/> and defined in <see cref="Assemblies"/> are excluded before <see cref="
Parts
"/> are added.
100
var key = new CacheKey(Assemblies,
Parts
, ExcludedPartTypes);
132
var configurationOverlap =
Parts
.Intersect(ExcludedPartTypes);
135
return ExportProviderCache.CreateAssemblyCatalog(Assemblies, ExportProviderCache.CreateResolver()).WithoutPartsOfTypes(ExcludedPartTypes).WithParts(
Parts
);
142
=> AddAssemblies(composition.Assemblies).AddParts(composition.
Parts
).AddExcludedPartTypes(composition.ExcludedPartTypes);
151
=> WithParts(
Parts
.Union(types ?? []));
163
=> RemoveAssemblies(composition.Assemblies).RemoveParts(composition.
Parts
).RemoveExcludedPartTypes(composition.ExcludedPartTypes);
172
=> WithParts(
Parts
.Except(types ?? []));
193
return new TestComposition(assemblies,
Parts
, ExcludedPartTypes);
206
=> (parts ==
Parts
) ? this : new TestComposition(Assemblies, parts, ExcludedPartTypes);
209
=> (excludedPartTypes == ExcludedPartTypes) ? this : new TestComposition(Assemblies,
Parts
, excludedPartTypes);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
TestCompositionTests.cs (6)
48
AssertEx.SetEqual([type1], composition2.
Parts
);
49
Assert.Empty(composition3.
Parts
);
68
Assert.Empty(composition3.
Parts
);
71
Assert.Empty(composition3.
Parts
);
93
AssertEx.SetEqual([type1, type2], composition3.
Parts
);
99
AssertEx.SetEqual([type2], composition4.
Parts
);