105 references to EditorFeatures
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginServiceBenchmarks.cs (1)
43.AddRange(EditorTestCompositions.EditorFeatures.Assemblies)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (27)
Classification\AbstractCSharpClassifierTests.cs (1)
19var composition = EditorTestCompositions.EditorFeatures.WithTestHostParts(testHost);
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
35EditorTestCompositions.EditorFeatures.AddParts(typeof(TestPickMembersService));
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (4)
60var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider(); 100var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider(); 111var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider(); 122var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Completion\CompletionProviders\CompletionProviderOrderTests.cs (4)
92var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider(); 132var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider(); 143var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider(); 154var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Completion\CompletionServiceTests.cs (1)
128using var workspace = new EditorTestWorkspace(composition: EditorTestCompositions.EditorFeatures.AddParts(typeof(ThirdPartyCompletionProvider)));
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
31private static readonly TestComposition s_compositionWithMockDiagnosticUpdateSourceRegistrationService = EditorTestCompositions.EditorFeatures;
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
37var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host);
EncapsulateField\EncapsulateFieldTestState.cs (1)
44var workspace = EditorTestWorkspace.CreateCSharp(markup, composition: EditorTestCompositions.EditorFeatures);
Formatting\Indentation\CSharpFormatterTestsBase.cs (1)
34private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures.AddParts(typeof(TestFormattingRuleFactoryServiceFactory));
Formatting\Indentation\SmartIndenterTests.cs (1)
27private static readonly TestComposition s_compositionWithTestFormattingRules = EditorTestCompositions.EditorFeatures
Formatting\RazorLineFormattingOptionsTests.cs (1)
23private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures;
Intents\IntentTestsBase.cs (2)
33using var workspace = EditorTestWorkspace.CreateCSharp(priorDocumentText, composition: EditorTestCompositions.EditorFeatures); 60using var workspace = EditorTestWorkspace.CreateCSharp(documentSet, composition: EditorTestCompositions.EditorFeatures);
NavigateTo\NavigateToSearcherTests.cs (1)
27private static readonly TestComposition FirstActiveAndVisibleComposition = EditorTestCompositions.EditorFeatures.AddParts(typeof(FirstDocumentIsActiveAndVisibleDocumentTrackingService.Factory));
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
244return EditorTestCompositions.EditorFeatures
Rename\CSharpInlineRenameServiceTests.cs (1)
62using var workspace = TestWorkspace.CreateCSharp(markup, composition: EditorTestCompositions.EditorFeatures);
Workspaces\WorkspaceTests_EditorFeatures.cs (5)
40composition ??= EditorTestCompositions.EditorFeatures; 474using var workspace = CreateWorkspace(composition: EditorTestCompositions.EditorFeatures.AddParts(typeof(TestWorkspaceConfigurationService))); 591var composition = EditorTestCompositions.EditorFeatures.AddParts( 861using var workspace = EditorTestWorkspace.Create(workspaceElement, composition: EditorTestCompositions.EditorFeatures); 1409using var workspace = EditorTestWorkspace.Create(input, composition: EditorTestCompositions.EditorFeatures, openDocuments: true);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (15)
CommentSelection\AbstractToggleCommentTestBase.cs (2)
36using var workspace = GetWorkspace(markup, composition: EditorTestCompositions.EditorFeatures); 53using var workspace = GetWorkspace(subjectBufferMarkup, composition: EditorTestCompositions.EditorFeatures);
Completion\AbstractArgumentProviderTests`1.cs (1)
26private static readonly TestComposition s_baseComposition = EditorTestCompositions.EditorFeatures.AddExcludedPartTypes(typeof(ArgumentProvider));
Completion\AbstractCompletionProviderTests.cs (1)
38private static readonly TestComposition s_baseComposition = EditorTestCompositions.EditorFeatures.AddExcludedPartTypes(typeof(CompletionProvider));
EditorTestCompositions.cs (2)
69public static readonly TestComposition EditorFeaturesWpf = EditorFeatures 79public static readonly TestComposition LanguageServerProtocolEditorFeatures = EditorFeatures
ExtractInterface\ExtractInterfaceTestState.cs (1)
23public static readonly TestComposition Composition = EditorTestCompositions.EditorFeatures.AddParts(
Formatting\CoreFormatterTestsBase.cs (1)
42private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures.AddParts(typeof(TestFormattingRuleFactoryServiceFactory));
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
22private static readonly TestComposition s_baseComposition = EditorTestCompositions.EditorFeatures.AddExcludedPartTypes(typeof(IHighlighter));
NavigateTo\AbstractNavigateToTests.cs (3)
43protected static readonly TestComposition DefaultComposition = EditorTestCompositions.EditorFeatures.AddParts(typeof(TestWorkspaceNavigateToSearchHostService)); 44protected static readonly TestComposition FirstVisibleComposition = EditorTestCompositions.EditorFeatures.AddParts(typeof(TestWorkspaceNavigateToSearchHostService), typeof(FirstDocIsVisibleDocumentTrackingService.Factory)); 45protected static readonly TestComposition FirstActiveAndVisibleComposition = EditorTestCompositions.EditorFeatures.AddParts(typeof(TestWorkspaceNavigateToSearchHostService), typeof(FirstDocumentIsActiveAndVisibleDocumentTrackingService.Factory));
Squiggles\SquiggleUtilities.cs (1)
24internal static TestComposition CompositionWithSolutionCrawler = EditorTestCompositions.EditorFeatures
TaskList\AbstractTaskListTests.cs (1)
19private static readonly TestComposition s_inProcessComposition = EditorTestCompositions.EditorFeatures;
Workspaces\EditorTestWorkspace.cs (1)
39: base(composition ?? EditorTestCompositions.EditorFeatures,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (41)
CodeActions\CodeChangeProviderMetadataTests.cs (4)
29var configuration = EditorTestCompositions.EditorFeatures.GetCompositionConfiguration(); 56var configuration = EditorTestCompositions.EditorFeatures.GetCompositionConfiguration(); 93var configuration = EditorTestCompositions.EditorFeatures.GetCompositionConfiguration(); 120var configuration = EditorTestCompositions.EditorFeatures.GetCompositionConfiguration();
CodeFixes\CodeFixServiceTests.cs (1)
35private static readonly TestComposition s_compositionWithMockDiagnosticUpdateSourceRegistrationService = EditorTestCompositions.EditorFeatures;
CodeFixes\ExtensionOrderingTests.cs (1)
25private static ExportProvider ExportProvider => EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
96composition: EditorTestCompositions.EditorFeatures.AddParts(typeof(T)));
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (1)
720=> EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
36private static readonly TestComposition s_featuresCompositionWithMockDiagnosticUpdateSourceRegistrationService = EditorTestCompositions.EditorFeatures 39private static readonly TestComposition s_editorFeaturesCompositionWithMockDiagnosticUpdateSourceRegistrationService = EditorTestCompositions.EditorFeatures;
Diagnostics\DiagnosticDataTests.cs (4)
111using var workspace = new TestWorkspace(composition: EditorTestCompositions.EditorFeatures); 137using var workspace = new TestWorkspace(composition: EditorTestCompositions.EditorFeatures); 181using var workspace = TestWorkspace.CreateCSharp(files: [], sourceGeneratedFiles: [content], composition: EditorTestCompositions.EditorFeatures); 221using var workspace = new TestWorkspace(composition: EditorTestCompositions.EditorFeatures);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
25private static readonly TestComposition s_compositionWithMockDiagnosticUpdateSourceRegistrationService = EditorTestCompositions.EditorFeatures;
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
48var composition = EditorTestCompositions.EditorFeatures
EditorAdapter\TextSnapshotImplementationTest.cs (1)
21var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
EditorAdapter\TextSpanExtensionsTest.cs (2)
36var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider(); 48var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Extensions\IProjectionBufferFactoryServiceExtensionsTests.cs (2)
52var composition = EditorTestCompositions.EditorFeatures; 82var composition = EditorTestCompositions.EditorFeatures;
Extensions\ITextSnapshotExtensionsTests.cs (2)
189var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider(); 196var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Extensions\ITextSnapshotLineExtensionsTests.cs (1)
188var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
InheritanceMargin\InheritanceMarginTests.cs (1)
26private static readonly TestComposition s_inProcessComposition = EditorTestCompositions.EditorFeatures;
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
291var composition = EditorTestCompositions.EditorFeatures
Preview\PreviewWorkspaceTests.cs (2)
116using var previewWorkspace = new PreviewWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 149var composition = EditorTestCompositions.EditorFeatures;
Structure\AbstractStructureTaggerProviderTests.cs (1)
18var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
SymbolFinder\DependentTypeFinderTests.cs (2)
45var composition = EditorTestCompositions.EditorFeatures.WithTestHostParts(host); 621var composition = EditorTestCompositions.EditorFeatures.WithTestHostParts(host);
TextEditor\OpenDocumentTests.cs (1)
29var hostServices = EditorTestCompositions.EditorFeatures.GetHostServices();
TextEditor\TextBufferAssociatedViewServiceTests.cs (1)
37var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
ValueTracking\AbstractBaseValueTrackingTests.cs (1)
22=> CreateWorkspace(code, EditorTestCompositions.EditorFeatures.WithTestHostParts(testHost));
Workspaces\ClassificationTypeNamesTests.cs (1)
34var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
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.EditorFeatures2.UnitTests (7)
CodeDefinitionWindow\AbstractCodeDefinitionWindowTests.vb (1)
17EditorTestCompositions.EditorFeatures _
CodeFixes\CodeFixServiceTests.vb (2)
30Private Shared ReadOnly s_compositionWithMockDiagnosticUpdateSourceRegistrationService As TestComposition = EditorTestCompositions.EditorFeatures 271Dim composition = EditorTestCompositions.EditorFeatures.AddParts(
Compilation\CompilationTests.vb (1)
27Dim composition = EditorTestCompositions.EditorFeatures.AddParts(
Diagnostics\DiagnosticProviderTests.vb (1)
37Private Shared ReadOnly s_composition As TestComposition = EditorTestCompositions.EditorFeatures _
Diagnostics\DiagnosticServiceTests.vb (1)
31Private Shared ReadOnly s_compositionWithMockDiagnosticUpdateSourceRegistrationService As TestComposition = EditorTestCompositions.EditorFeatures
GoToHelpers\GoToHelpers.vb (1)
20Using workspace = EditorTestWorkspace.Create(workspaceDefinition, composition:=EditorTestCompositions.EditorFeatures.WithTestHostParts(testHost))
Microsoft.VisualStudio.LanguageServices.UnitTests (13)
LanguageBlockTests.vb (1)
247Dim composition = EditorTestCompositions.EditorFeatures.AddParts(
SolutionExplorer\SourceGeneratorItemTests.vb (2)
142composition:=EditorTestCompositions.EditorFeatures.AddParts(GetType(TestWorkspaceConfigurationService))) 183composition:=EditorTestCompositions.EditorFeatures.AddParts(GetType(TestWorkspaceConfigurationService)))
Venus\DocumentService_IntegrationTests.vb (2)
41Private Shared ReadOnly s_compositionWithMockDiagnosticUpdateSourceRegistrationService As TestComposition = EditorTestCompositions.EditorFeatures 65Dim composition = EditorTestCompositions.EditorFeatures.AddParts(GetType(MockServiceProvider))
Venus\DocumentServiceTests.vb (8)
32</Workspace>, composition:=EditorTestCompositions.EditorFeatures) 56</Workspace>, composition:=EditorTestCompositions.EditorFeatures) 88</Workspace>, composition:=EditorTestCompositions.EditorFeatures) 111</Workspace>, composition:=EditorTestCompositions.EditorFeatures) 132</Workspace>, composition:=EditorTestCompositions.EditorFeatures) 170</Workspace>, composition:=EditorTestCompositions.EditorFeatures) 209</Workspace>, composition:=EditorTestCompositions.EditorFeatures) 266</Workspace>, composition:=EditorTestCompositions.EditorFeatures)
Roslyn.VisualStudio.Next.UnitTests (1)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
250var composition = EditorTestCompositions.EditorFeatures.WithTestHostParts(TestHost.OutOfProcess);