1 write to Assemblies
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\TestComposition.cs (1)
78
Assemblies
= assemblies;
17 references to Assemblies
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginServiceBenchmarks.cs (1)
53
.AddRange(EditorTestCompositions.EditorFeatures.
Assemblies
)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (11)
MEF\TestComposition.cs (11)
65
/// All subtypes of types specified in <see cref="ExcludedPartTypes"/> and defined in <see cref="
Assemblies
"/> are excluded before <see cref="Parts"/> are added.
99
var key = new CacheKey(
Assemblies
, Parts, ExcludedPartTypes);
125
=>
Assemblies
.Contains(typeof(Remote.BrokeredServiceBase).Assembly);
128
=> ExportProviderCache.CreateAssemblyCatalog(
Assemblies
, ExportProviderCache.CreateResolver()).WithoutPartsOfTypes(ExcludedPartTypes).WithParts(Parts);
134
=> AddAssemblies(composition.
Assemblies
).AddParts(composition.Parts).AddExcludedPartTypes(composition.ExcludedPartTypes);
140
=> WithAssemblies(
Assemblies
.Union(assemblies ?? Array.Empty<Assembly>()));
155
=> RemoveAssemblies(composition.
Assemblies
).RemoveParts(composition.Parts).RemoveExcludedPartTypes(composition.ExcludedPartTypes);
161
=> WithAssemblies(
Assemblies
.Except(assemblies ?? Array.Empty<Assembly>()));
177
if (assemblies ==
Assemblies
)
198
=> (parts == Parts) ? this : new TestComposition(
Assemblies
, parts, ExcludedPartTypes);
201
=> (excludedPartTypes == ExcludedPartTypes) ? this : new TestComposition(
Assemblies
, Parts, excludedPartTypes);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
TestCompositionTests.cs (5)
31
AssertEx.SetEqual(new[] { assembly1 }, composition2.
Assemblies
);
32
Assert.Empty(composition2.RemoveAssemblies(assembly1).
Assemblies
);
35
AssertEx.SetEqual(new[] { assembly2 }, composition3.
Assemblies
);
92
AssertEx.SetEqual(new[] { assembly1, assembly2 }, composition3.
Assemblies
);
98
AssertEx.SetEqual(new[] { assembly2 }, composition4.
Assemblies
);