55 references to FeaturesTestCompositions
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (1)
21private static readonly TestComposition s_testServices = FeaturesTestCompositions.Features.AddParts(typeof(TestMoveStaticMembersService));
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (1)
84using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features);
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (1)
125using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features);
Completion\CompletionServiceTests.cs (2)
48using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features.AddParts(typeof(ThirdPartyCompletionProvider))); 105using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features.AddParts(typeof(ThirdPartyCompletionProvider)));
MoveToNamespace\MoveToNamespaceTests.cs (1)
23private static readonly TestComposition s_compositionWithoutOptions = FeaturesTestCompositions.Features
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\RecommenderTests.cs (1)
58using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (6)
Diagnostics\Suppression\SuppressionAllCodeTests.cs (1)
24private static readonly TestComposition s_compositionWithMockDiagnosticUpdateSourceRegistrationService = FeaturesTestCompositions.Features
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
32private static readonly TestComposition s_composition = FeaturesTestCompositions.Features;
SemanticSearch\CSharpSemanticSearchServiceTests.cs (4)
62""", composition: FeaturesTestCompositions.Features); 99""", composition: FeaturesTestCompositions.Features); 149""", composition: FeaturesTestCompositions.Features); 203""", composition: FeaturesTestCompositions.Features);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
EditorTestCompositions.cs (1)
59public static readonly TestComposition EditorFeatures = FeaturesTestCompositions.Features
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeRefactorings\CodeRefactoringServiceTest.cs (4)
44using var workspace = TestWorkspace.CreateCSharp(code, composition: FeaturesTestCompositions.Features); 76var composition = FeaturesTestCompositions.Features.AddParts(typeof(TypeScriptCodeRefactoringProvider)); 157using var workspace = TestWorkspace.CreateCSharp("", composition: FeaturesTestCompositions.Features); 196using var workspace = TestWorkspace.CreateCSharp("", composition: FeaturesTestCompositions.Features);
Preview\PreviewWorkspaceTests.cs (1)
37var hostServices = FeaturesTestCompositions.Features.GetHostServices();
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
115using var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices());
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
71var composition = FeaturesTestCompositions.Features
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
26composition: FeaturesTestCompositions.Features.WithTestHostParts(testHost));
Snippets\AbstractSnippetProviderTests.cs (2)
31using var workspace = new TestWorkspace(FeaturesTestCompositions.Features); 114using var workspace = new TestWorkspace(FeaturesTestCompositions.Features);
Microsoft.CodeAnalysis.Features.UnitTests (9)
EditAndContinue\ActiveStatementsMapTests.cs (3)
93using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features); 160using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features); 201using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features);
EditAndContinue\CompileTimeSolutionProviderTests.cs (2)
27var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features); 76var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features);
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
31private static readonly TestComposition s_composition = FeaturesTestCompositions.Features.AddParts(typeof(NoCompilationLanguageService));
EditAndContinue\EmitSolutionUpdateResultsTests.cs (2)
29var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features); 64using var workspace = new TestWorkspace(composition: FeaturesTestCompositions.Features);
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
40var localComposition = FeaturesTestCompositions.Features.WithTestHostParts(testHost)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Remote\InProcRemoteHostClientProvider.cs (1)
55var hostServices = FeaturesTestCompositions.RemoteHost.AddParts(additionalRemoteParts).AddExcludedPartTypes(excludedRemoteParts).GetHostServices();
Workspaces\TestWorkspace`1.cs (1)
167composition ??= FeaturesTestCompositions.Features;
WorkspaceTestUtilities.cs (1)
15=> new WorkspaceWithPartialSemantics(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(testHost).GetHostServices());
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
FindAllDeclarationsTests.TestSolutionsAndProject.cs (1)
79var composition = FeaturesTestCompositions.Features.WithTestHostParts(testHost);
FindReferencesTests.cs (1)
25=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).GetHostServices());
Formatter\FormatterTests.cs (1)
30private static readonly TestComposition s_composition = FeaturesTestCompositions.Features;
Remote\ServiceDescriptorTests.cs (1)
364var hostServices = FeaturesTestCompositions.Features.WithTestHostParts(Testing.TestHost.OutOfProcess).GetHostServices();
SolutionTests\SolutionTestHelpers.cs (1)
17=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(testHost).GetHostServices());
SolutionTests\SolutionTests.cs (1)
3835var hostServices = FeaturesTestCompositions.Features.AddParts(
SyntaxReferenceTests.cs (1)
23=> new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices());
TestCompositionTests.cs (2)
18var composition1 = FeaturesTestCompositions.Features.AddParts(typeof(TestErrorReportingService), typeof(TestSourceGeneratorTelemetryCollectorWorkspaceServiceFactory)); 19var composition2 = FeaturesTestCompositions.Features.AddParts(typeof(TestSourceGeneratorTelemetryCollectorWorkspaceServiceFactory), typeof(TestErrorReportingService));
WorkspaceTests\AdhocWorkspaceTests.cs (1)
582var composition = FeaturesTestCompositions.Features;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
PersistentStorage\AbstractPersistentStorageTests.cs (1)
840var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices());
Roslyn.VisualStudio.Next.UnitTests (8)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
25private static readonly TestComposition s_composition = FeaturesTestCompositions.Features.WithTestHostParts(TestHost.OutOfProcess);
Remote\SnapshotSerializationTests.cs (1)
42=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(TestHost.OutOfProcess).GetHostServices());
Services\AssetProviderTests.cs (1)
30=> new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\ServiceHubServicesTests.cs (2)
44=> new(composition: FeaturesTestCompositions.Features.WithTestHostParts(TestHost.OutOfProcess).AddParts(additionalParts)); 364using var remoteWorkspace = new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\SolutionAssetCacheTests.cs (1)
73var workspace = new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\SolutionServiceTests.cs (2)
36private static readonly TestComposition s_composition = FeaturesTestCompositions.Features.WithTestHostParts(TestHost.OutOfProcess); 41=> new(FeaturesTestCompositions.RemoteHost.GetHostServices());