35 references to GetHostServices
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
43var workspace = new AdhocWorkspace(s_composition.GetHostServices());
CodeActions\MoveStaticMembers\CSharpMoveStaticMembersTests.cs (1)
3475var hostServices = s_testServices.GetHostServices();
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
37var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host);
Formatting\RazorLineFormattingOptionsTests.cs (1)
39var hostServices = s_composition.GetHostServices();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
42=> new AdhocWorkspace(s_featuresCompositionWithMockDiagnosticUpdateSourceRegistrationService.AddParts(additionalParts).GetHostServices());
Preview\PreviewWorkspaceTests.cs (3)
37var hostServices = FeaturesTestCompositions.Features.GetHostServices(); 116using var previewWorkspace = new PreviewWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 152static composition => new PreviewWorkspace(composition.GetHostServices()),
TextEditor\OpenDocumentTests.cs (1)
29var hostServices = EditorTestCompositions.EditorFeatures.GetHostServices();
Workspaces\TextFactoryTests.cs (6)
26using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 39using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 52using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 65using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 81using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 101using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices());
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
115using var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices());
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Remote\InProcRemoteHostClientProvider.cs (1)
55var hostServices = FeaturesTestCompositions.RemoteHost.AddParts(additionalRemoteParts).AddExcludedPartTypes(excludedRemoteParts).GetHostServices();
Workspaces\TestWorkspace`1.cs (1)
174return composition.GetHostServices();
WorkspaceTestUtilities.cs (1)
15=> new WorkspaceWithPartialSemantics(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(testHost).GetHostServices());
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
FindAllDeclarationsTests.TestSolutionsAndProject.cs (1)
80var workspace = new AdhocWorkspace(composition.GetHostServices());
FindReferencesTests.cs (1)
25=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).GetHostServices());
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());
SyntaxReferenceTests.cs (1)
23=> new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices());
WorkspaceTests\AdhocWorkspaceTests.cs (1)
585static composition => new AdhocWorkspace(composition.GetHostServices()),
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (1)
20=> new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.AddParts(additionalParts).GetHostServices(), WorkspaceKind.Host);
EditorConfigSettings\DataProvider\DataProviderTests.cs (1)
28var workspace = new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.GetHostServices(), WorkspaceKind.Host);
PersistentStorage\AbstractPersistentStorageTests.cs (2)
840var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices()); 982var workspace = new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.GetHostServices());
Roslyn.VisualStudio.Next.UnitTests (6)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
28=> new(s_composition.GetHostServices());
Remote\SnapshotSerializationTests.cs (1)
46=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(TestHost.OutOfProcess).GetHostServices());
Services\AssetProviderTests.cs (1)
30=> new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\ServiceHubServicesTests.cs (1)
364using var remoteWorkspace = new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\SolutionAssetCacheTests.cs (1)
73var workspace = new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\SolutionServiceTests.cs (1)
41=> new(FeaturesTestCompositions.RemoteHost.GetHostServices());