41 references to GetHostServices
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
37var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host);
Formatting\RazorLineFormattingOptionsTests.cs (1)
39var hostServices = s_composition.GetHostServices();
GenerateFromMembers\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
43var workspace = new AdhocWorkspace(s_composition.GetHostServices());
MoveStaticMembers\CSharpMoveStaticMembersTests.cs (1)
3425var hostServices = s_testServices.GetHostServices();
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (2)
CodeActions\CSharpCodeRefactoringVerifier`1+Test.cs (1)
132var hostServices = s_editorFeaturesOOPComposition.GetHostServices();
CodeActions\VisualBasicCodeRefactoringVerifier`1+Test.cs (1)
118var hostServices = s_editorFeaturesOOPComposition.GetHostServices();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\EditAndContinueTestHelpers.cs (1)
107using var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices());
Workspaces\TestWorkspace.cs (1)
134return composition.GetHostServices();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
53=> new(s_featuresCompositionWithMockDiagnosticUpdateSourceRegistrationService.AddParts(additionalParts).GetHostServices());
Preview\PreviewWorkspaceTests.cs (3)
46var hostServices = FeaturesTestCompositions.Features.GetHostServices(); 126using var previewWorkspace = new PreviewWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 253static composition => new PreviewWorkspace(composition.GetHostServices()),
TextEditor\OpenDocumentTests.cs (1)
29var hostServices = EditorTestCompositions.EditorFeatures.GetHostServices();
Workspaces\TextFactoryTests.cs (6)
27using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 40using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 53using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 66using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 79using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 101using var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices());
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
MoveStaticMembers\VisualBasicMoveStaticMembersTests.vb (1)
3069Dim hostServices = s_testServices.GetHostServices()
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Remote\InProcRemoteHostClientProvider.cs (1)
46var hostServices = FeaturesTestCompositions.RemoteHost.AddParts(additionalRemoteParts).GetHostServices();
WorkspaceTestUtilities.cs (1)
14=> new WorkspaceWithPartialSemantics(FeaturesTestCompositions.Features.AddParts(additionalParts).GetHostServices());
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
FindAllDeclarationsTests.TestSolutionsAndProject.cs (1)
80var workspace = new AdhocWorkspace(composition.GetHostServices());
FindReferencesTests.cs (1)
24=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).GetHostServices());
Formatter\FormatterTests.cs (2)
48var hostServices = s_composition.AddParts(new[] { typeof(NoCompilationLanguageService), typeof(TestFormattingService) }).GetHostServices(); 66var hostServices = s_composition.AddParts(new[] { typeof(NoCompilationLanguageService), typeof(TestFormattingService) }).GetHostServices();
Remote\ServiceDescriptorTests.cs (1)
386var hostServices = FeaturesTestCompositions.Features.WithTestHostParts(Testing.TestHost.OutOfProcess).GetHostServices();
SolutionTests\SolutionTestHelpers.cs (1)
17=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).GetHostServices());
SolutionTests\SolutionTests.cs (1)
3201}).GetHostServices();
SyntaxReferenceTests.cs (1)
26=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).GetHostServices());
WorkspaceTests\AdhocWorkspaceTests.cs (1)
610static composition => new AdhocWorkspace(composition.GetHostServices()),
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (1)
21=> 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)
847var workspace = new AdhocWorkspace(FeaturesTestCompositions.Features.GetHostServices()); 987var workspace = new AdhocWorkspace(VisualStudioTestCompositions.LanguageServices.GetHostServices());
Roslyn.VisualStudio.Next.UnitTests (6)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
33=> new(s_composition.GetHostServices());
Remote\SnapshotSerializationTests.cs (1)
51=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(TestHost.OutOfProcess).GetHostServices());
Services\AssetProviderTests.cs (1)
29=> new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\ServiceHubServicesTests.cs (1)
315using var remoteWorkspace = new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\SolutionAssetCacheTests.cs (1)
69var workspace = new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());
Services\SolutionServiceTests.cs (1)
36=> new RemoteWorkspace(FeaturesTestCompositions.RemoteHost.GetHostServices());