146 references to EditorTestCompositions
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginServiceBenchmarks.cs (1)
43.AddRange(EditorTestCompositions.EditorFeatures.Assemblies)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (46)
ChangeSignature\RemoveParametersTests.cs (1)
378composition: EditorTestCompositions.EditorFeaturesWpf);
Classification\AbstractCSharpClassifierTests.cs (1)
19var composition = EditorTestCompositions.EditorFeatures.WithTestHostParts(testHost);
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
35EditorTestCompositions.EditorFeatures.AddParts(typeof(TestPickMembersService));
CodeActions\GenerateType\GenerateTypeTests.cs (1)
37=> EditorTestCompositions.EditorFeaturesWpf;
CodeActions\PreviewTests.cs (1)
27private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeaturesWpf
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (5)
27var exportProvider = EditorTestCompositions.EditorFeaturesWpf.ExportProviderFactory.CreateExportProvider(); 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 (5)
28var exportProvider = EditorTestCompositions.EditorFeaturesWpf.ExportProviderFactory.CreateExportProvider(); 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)));
ConvertNamespace\ConvertNamespaceCommandHandlerTests.cs (1)
21private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeaturesWpf.AddParts(
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\EncapsulateFieldCommandHandlerTests.cs (1)
205composition: EditorTestCompositions.EditorFeaturesWpf);
EncapsulateField\EncapsulateFieldTestState.cs (1)
44var workspace = EditorTestWorkspace.CreateCSharp(markup, composition: EditorTestCompositions.EditorFeatures);
EventHookup\EventHookupTestState.cs (1)
24private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeaturesWpf.AddParts(
ExtractInterface\ExtractInterfaceTests.cs (1)
1451composition: EditorTestCompositions.EditorFeaturesWpf);
ExtractMethod\ExtractMethodMiscellaneousTests.cs (1)
134using var workspace = EditorTestWorkspace.CreateCSharp(markupCode, composition: EditorTestCompositions.EditorFeaturesWpf);
ExtractMethod\ExtractMethodTests.cs (1)
11376composition: EditorTestCompositions.EditorFeaturesWpf);
Formatting\CodeCleanupTests.cs (4)
787using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf.AddParts(typeof(TCodefix))); 838return EditorTestWorkspace.CreateCSharp(string.Empty, composition: EditorTestCompositions.EditorFeaturesWpf); 843return EditorTestWorkspace.CreateVisualBasic(string.Empty, composition: EditorTestCompositions.EditorFeaturesWpf); 876using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf);
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));
Organizing\OrganizeTypeDeclarationTests.cs (1)
1178composition: EditorTestCompositions.EditorFeaturesWpf);
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
244return EditorTestCompositions.EditorFeatures
RawStringLiteral\RawStringLiteralCommandHandlerTests.cs (1)
22private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeaturesWpf.AddParts(
Rename\CSharpInlineRenameServiceTests.cs (1)
62using var workspace = TestWorkspace.CreateCSharp(markup, composition: EditorTestCompositions.EditorFeatures);
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (2)
32EditorTestCompositions.EditorFeaturesWpf 36EditorTestCompositions.EditorFeaturesWpf
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 (16)
AutomaticCompletion\AbstractAutomaticLineEnderTests.cs (1)
73using var workspace = EditorTestWorkspace.Create(Language, compilationOptions: null, parseOptions: null, [markupCode], composition: EditorTestCompositions.EditorFeaturesWpf);
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));
ExtractInterface\ExtractInterfaceTestState.cs (1)
24public 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));
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
53protected static readonly TestComposition EditorFeaturesLspComposition = EditorTestCompositions.LanguageServerProtocolEditorFeatures
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 (2)
24internal static TestComposition CompositionWithSolutionCrawler = EditorTestCompositions.EditorFeatures 27internal static TestComposition WpfCompositionWithSolutionCrawler = EditorTestCompositions.EditorFeaturesWpf
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 (57)
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 (2)
48var composition = EditorTestCompositions.EditorFeatures 89var localComposition = EditorTestCompositions.LanguageServerProtocolEditorFeatures
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 (3)
27var exportProvider = EditorTestCompositions.Editor.ExportProviderFactory.CreateExportProvider(); 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;
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
55using var workspace = EditorTestWorkspace.Create(WorkspaceXml, composition: EditorTestCompositions.EditorFeaturesWpf);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
291var composition = EditorTestCompositions.EditorFeatures
Options\GlobalOptionsTests.cs (1)
152var composition = EditorTestCompositions.LanguageServerProtocolEditorFeatures.
Preview\PreviewWorkspaceTests.cs (2)
116using var previewWorkspace = new PreviewWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices()); 149var composition = EditorTestCompositions.EditorFeatures;
RenameTracking\RenameTrackingTestState.cs (1)
132return EditorTestWorkspace.Create(xml, composition: EditorTestCompositions.EditorFeaturesWpf);
Structure\AbstractStructureTaggerProviderTests.cs (1)
18var exportProvider = EditorTestCompositions.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Structure\StructureTaggerTests.cs (8)
56using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf); 123using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf); 168using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf); 213using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf); 265using var workspace = EditorTestWorkspace.CreateVisualBasic(code, composition: EditorTestCompositions.EditorFeaturesWpf); 321using var workspace = EditorTestWorkspace.CreateVisualBasic(code, composition: EditorTestCompositions.EditorFeaturesWpf); 343using var workspace = EditorTestWorkspace.CreateVisualBasic(code, composition: EditorTestCompositions.EditorFeaturesWpf); 375using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf);
SymbolFinder\DependentTypeFinderTests.cs (2)
45var composition = EditorTestCompositions.EditorFeatures.WithTestHostParts(host); 621var composition = EditorTestCompositions.EditorFeatures.WithTestHostParts(host);
Tagging\AsynchronousTaggerTests.cs (2)
102""", composition: EditorTestCompositions.EditorFeaturesWpf); 128""", composition: EditorTestCompositions.EditorFeaturesWpf);
Tagging\TagSpanIntervalTreeTests.cs (1)
25var exportProvider = EditorTestCompositions.Editor.ExportProviderFactory.CreateExportProvider();
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.CSharp.UnitTests (3)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
72private static readonly TestComposition s_composition = EditorTestCompositions.LanguageServerProtocolEditorFeatures
Interactive\Commands\InteractiveWindowCommandHandlerTestState.cs (1)
45: base(workspaceElement, EditorTestCompositions.InteractiveWindow, workspaceKind: null)
Interactive\Commands\ResetInteractiveTests.cs (1)
49using var workspace = TestWorkspace.Create(WorkspaceXmlStr, composition: EditorTestCompositions.InteractiveWindow);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
ProjectSystemShim\Framework\TestEnvironment.vb (1)
52Private Shared ReadOnly s_composition As TestComposition = EditorTestCompositions.EditorFeaturesWpf _
VisualStudioTestCompositions.vb (1)
18Public Shared ReadOnly LanguageServices As TestComposition = EditorTestCompositions.EditorFeaturesWpf.
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);