1 write to Assemblies
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\TestComposition.cs (1)
79
Assemblies
= assemblies;
17 references to Assemblies
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginServiceBenchmarks.cs (1)
43
.AddRange(EditorTestCompositions.EditorFeatures.
Assemblies
)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Intellisense\TestState.vb (1)
101
Assert.Contains(GetType(FormatCommandHandler).Assembly, composition.
Assemblies
)
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);
126
=>
Assemblies
.Contains(typeof(Remote.BrokeredServiceBase).Assembly);
135
return ExportProviderCache.CreateAssemblyCatalog(
Assemblies
, ExportProviderCache.CreateResolver()).WithoutPartsOfTypes(ExcludedPartTypes).WithParts(Parts);
142
=> AddAssemblies(composition.
Assemblies
).AddParts(composition.Parts).AddExcludedPartTypes(composition.ExcludedPartTypes);
148
=> WithAssemblies(
Assemblies
.Union(assemblies ?? []));
163
=> RemoveAssemblies(composition.
Assemblies
).RemoveParts(composition.Parts).RemoveExcludedPartTypes(composition.ExcludedPartTypes);
169
=> WithAssemblies(
Assemblies
.Except(assemblies ?? []));
185
if (assemblies ==
Assemblies
)
206
=> (parts == Parts) ? this : new TestComposition(
Assemblies
, parts, ExcludedPartTypes);
209
=> (excludedPartTypes == ExcludedPartTypes) ? this : new TestComposition(
Assemblies
, Parts, excludedPartTypes);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
TestCompositionTests.cs (4)
31
AssertEx.SetEqual([assembly1], composition2.
Assemblies
);
32
Assert.Empty(composition2.RemoveAssemblies(assembly1).
Assemblies
);
92
AssertEx.SetEqual([assembly1, assembly2], composition3.
Assemblies
);
98
AssertEx.SetEqual([assembly2], composition4.
Assemblies
);