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)
378
composition:
EditorTestCompositions
.EditorFeaturesWpf);
Classification\AbstractCSharpClassifierTests.cs (1)
19
var composition =
EditorTestCompositions
.EditorFeatures.WithTestHostParts(testHost);
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
35
EditorTestCompositions
.EditorFeatures.AddParts(typeof(TestPickMembersService));
CodeActions\GenerateType\GenerateTypeTests.cs (1)
37
=>
EditorTestCompositions
.EditorFeaturesWpf;
CodeActions\PreviewTests.cs (1)
27
private static readonly TestComposition s_composition =
EditorTestCompositions
.EditorFeaturesWpf
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (5)
27
var exportProvider =
EditorTestCompositions
.EditorFeaturesWpf.ExportProviderFactory.CreateExportProvider();
60
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
100
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
111
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
122
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Completion\CompletionProviders\CompletionProviderOrderTests.cs (5)
28
var exportProvider =
EditorTestCompositions
.EditorFeaturesWpf.ExportProviderFactory.CreateExportProvider();
92
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
132
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
143
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
154
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Completion\CompletionServiceTests.cs (1)
128
using var workspace = new EditorTestWorkspace(composition:
EditorTestCompositions
.EditorFeatures.AddParts(typeof(ThirdPartyCompletionProvider)));
ConvertNamespace\ConvertNamespaceCommandHandlerTests.cs (1)
21
private static readonly TestComposition s_composition =
EditorTestCompositions
.EditorFeaturesWpf.AddParts(
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
31
private static readonly TestComposition s_compositionWithMockDiagnosticUpdateSourceRegistrationService =
EditorTestCompositions
.EditorFeatures;
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (1)
37
var workspace = new AdhocWorkspace(
EditorTestCompositions
.EditorFeatures.GetHostServices(), WorkspaceKind.Host);
EncapsulateField\EncapsulateFieldCommandHandlerTests.cs (1)
205
composition:
EditorTestCompositions
.EditorFeaturesWpf);
EncapsulateField\EncapsulateFieldTestState.cs (1)
44
var workspace = EditorTestWorkspace.CreateCSharp(markup, composition:
EditorTestCompositions
.EditorFeatures);
EventHookup\EventHookupTestState.cs (1)
24
private static readonly TestComposition s_composition =
EditorTestCompositions
.EditorFeaturesWpf.AddParts(
ExtractInterface\ExtractInterfaceTests.cs (1)
1451
composition:
EditorTestCompositions
.EditorFeaturesWpf);
ExtractMethod\ExtractMethodMiscellaneousTests.cs (1)
134
using var workspace = EditorTestWorkspace.CreateCSharp(markupCode, composition:
EditorTestCompositions
.EditorFeaturesWpf);
ExtractMethod\ExtractMethodTests.cs (1)
11376
composition:
EditorTestCompositions
.EditorFeaturesWpf);
Formatting\CodeCleanupTests.cs (4)
787
using var workspace = EditorTestWorkspace.CreateCSharp(code, composition:
EditorTestCompositions
.EditorFeaturesWpf.AddParts(typeof(TCodefix)));
838
return EditorTestWorkspace.CreateCSharp(string.Empty, composition:
EditorTestCompositions
.EditorFeaturesWpf);
843
return EditorTestWorkspace.CreateVisualBasic(string.Empty, composition:
EditorTestCompositions
.EditorFeaturesWpf);
876
using var workspace = EditorTestWorkspace.CreateCSharp(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
Formatting\Indentation\CSharpFormatterTestsBase.cs (1)
34
private static readonly TestComposition s_composition =
EditorTestCompositions
.EditorFeatures.AddParts(typeof(TestFormattingRuleFactoryServiceFactory));
Formatting\Indentation\SmartIndenterTests.cs (1)
27
private static readonly TestComposition s_compositionWithTestFormattingRules =
EditorTestCompositions
.EditorFeatures
Formatting\RazorLineFormattingOptionsTests.cs (1)
23
private static readonly TestComposition s_composition =
EditorTestCompositions
.EditorFeatures;
Intents\IntentTestsBase.cs (2)
33
using var workspace = EditorTestWorkspace.CreateCSharp(priorDocumentText, composition:
EditorTestCompositions
.EditorFeatures);
60
using var workspace = EditorTestWorkspace.CreateCSharp(documentSet, composition:
EditorTestCompositions
.EditorFeatures);
NavigateTo\NavigateToSearcherTests.cs (1)
27
private static readonly TestComposition FirstActiveAndVisibleComposition =
EditorTestCompositions
.EditorFeatures.AddParts(typeof(FirstDocumentIsActiveAndVisibleDocumentTrackingService.Factory));
Organizing\OrganizeTypeDeclarationTests.cs (1)
1178
composition:
EditorTestCompositions
.EditorFeaturesWpf);
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
244
return
EditorTestCompositions
.EditorFeatures
RawStringLiteral\RawStringLiteralCommandHandlerTests.cs (1)
22
private static readonly TestComposition s_composition =
EditorTestCompositions
.EditorFeaturesWpf.AddParts(
Rename\CSharpInlineRenameServiceTests.cs (1)
62
using var workspace = TestWorkspace.CreateCSharp(markup, composition:
EditorTestCompositions
.EditorFeatures);
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (2)
32
EditorTestCompositions
.EditorFeaturesWpf
36
EditorTestCompositions
.EditorFeaturesWpf
Workspaces\WorkspaceTests_EditorFeatures.cs (5)
40
composition ??=
EditorTestCompositions
.EditorFeatures;
474
using var workspace = CreateWorkspace(composition:
EditorTestCompositions
.EditorFeatures.AddParts(typeof(TestWorkspaceConfigurationService)));
591
var composition =
EditorTestCompositions
.EditorFeatures.AddParts(
861
using var workspace = EditorTestWorkspace.Create(workspaceElement, composition:
EditorTestCompositions
.EditorFeatures);
1409
using var workspace = EditorTestWorkspace.Create(input, composition:
EditorTestCompositions
.EditorFeatures, openDocuments: true);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (16)
AutomaticCompletion\AbstractAutomaticLineEnderTests.cs (1)
73
using var workspace = EditorTestWorkspace.Create(Language, compilationOptions: null, parseOptions: null, [markupCode], composition:
EditorTestCompositions
.EditorFeaturesWpf);
CommentSelection\AbstractToggleCommentTestBase.cs (2)
36
using var workspace = GetWorkspace(markup, composition:
EditorTestCompositions
.EditorFeatures);
53
using var workspace = GetWorkspace(subjectBufferMarkup, composition:
EditorTestCompositions
.EditorFeatures);
Completion\AbstractArgumentProviderTests`1.cs (1)
26
private static readonly TestComposition s_baseComposition =
EditorTestCompositions
.EditorFeatures.AddExcludedPartTypes(typeof(ArgumentProvider));
Completion\AbstractCompletionProviderTests.cs (1)
38
private static readonly TestComposition s_baseComposition =
EditorTestCompositions
.EditorFeatures.AddExcludedPartTypes(typeof(CompletionProvider));
ExtractInterface\ExtractInterfaceTestState.cs (1)
24
public static readonly TestComposition Composition =
EditorTestCompositions
.EditorFeatures.AddParts(
Formatting\CoreFormatterTestsBase.cs (1)
42
private static readonly TestComposition s_composition =
EditorTestCompositions
.EditorFeatures.AddParts(typeof(TestFormattingRuleFactoryServiceFactory));
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
22
private static readonly TestComposition s_baseComposition =
EditorTestCompositions
.EditorFeatures.AddExcludedPartTypes(typeof(IHighlighter));
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
53
protected static readonly TestComposition EditorFeaturesLspComposition =
EditorTestCompositions
.LanguageServerProtocolEditorFeatures
NavigateTo\AbstractNavigateToTests.cs (3)
43
protected static readonly TestComposition DefaultComposition =
EditorTestCompositions
.EditorFeatures.AddParts(typeof(TestWorkspaceNavigateToSearchHostService));
44
protected static readonly TestComposition FirstVisibleComposition =
EditorTestCompositions
.EditorFeatures.AddParts(typeof(TestWorkspaceNavigateToSearchHostService), typeof(FirstDocIsVisibleDocumentTrackingService.Factory));
45
protected static readonly TestComposition FirstActiveAndVisibleComposition =
EditorTestCompositions
.EditorFeatures.AddParts(typeof(TestWorkspaceNavigateToSearchHostService), typeof(FirstDocumentIsActiveAndVisibleDocumentTrackingService.Factory));
Squiggles\SquiggleUtilities.cs (2)
24
internal static TestComposition CompositionWithSolutionCrawler =
EditorTestCompositions
.EditorFeatures
27
internal static TestComposition WpfCompositionWithSolutionCrawler =
EditorTestCompositions
.EditorFeaturesWpf
TaskList\AbstractTaskListTests.cs (1)
19
private 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)
29
var configuration =
EditorTestCompositions
.EditorFeatures.GetCompositionConfiguration();
56
var configuration =
EditorTestCompositions
.EditorFeatures.GetCompositionConfiguration();
93
var configuration =
EditorTestCompositions
.EditorFeatures.GetCompositionConfiguration();
120
var configuration =
EditorTestCompositions
.EditorFeatures.GetCompositionConfiguration();
CodeFixes\CodeFixServiceTests.cs (1)
35
private static readonly TestComposition s_compositionWithMockDiagnosticUpdateSourceRegistrationService =
EditorTestCompositions
.EditorFeatures;
CodeFixes\ExtensionOrderingTests.cs (1)
25
private static ExportProvider ExportProvider =>
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
96
composition:
EditorTestCompositions
.EditorFeatures.AddParts(typeof(T)));
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (1)
720
=>
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
36
private static readonly TestComposition s_featuresCompositionWithMockDiagnosticUpdateSourceRegistrationService =
EditorTestCompositions
.EditorFeatures
39
private static readonly TestComposition s_editorFeaturesCompositionWithMockDiagnosticUpdateSourceRegistrationService =
EditorTestCompositions
.EditorFeatures;
Diagnostics\DiagnosticDataTests.cs (4)
111
using var workspace = new TestWorkspace(composition:
EditorTestCompositions
.EditorFeatures);
137
using var workspace = new TestWorkspace(composition:
EditorTestCompositions
.EditorFeatures);
181
using var workspace = TestWorkspace.CreateCSharp(files: [], sourceGeneratedFiles: [content], composition:
EditorTestCompositions
.EditorFeatures);
221
using var workspace = new TestWorkspace(composition:
EditorTestCompositions
.EditorFeatures);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
25
private static readonly TestComposition s_compositionWithMockDiagnosticUpdateSourceRegistrationService =
EditorTestCompositions
.EditorFeatures;
EditAndContinue\EditAndContinueLanguageServiceTests.cs (2)
48
var composition =
EditorTestCompositions
.EditorFeatures
89
var localComposition =
EditorTestCompositions
.LanguageServerProtocolEditorFeatures
EditorAdapter\TextSnapshotImplementationTest.cs (1)
21
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
EditorAdapter\TextSpanExtensionsTest.cs (2)
36
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
48
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Extensions\IProjectionBufferFactoryServiceExtensionsTests.cs (3)
27
var exportProvider =
EditorTestCompositions
.Editor.ExportProviderFactory.CreateExportProvider();
52
var composition =
EditorTestCompositions
.EditorFeatures;
82
var composition =
EditorTestCompositions
.EditorFeatures;
Extensions\ITextSnapshotExtensionsTests.cs (2)
189
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
196
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Extensions\ITextSnapshotLineExtensionsTests.cs (1)
188
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
InheritanceMargin\InheritanceMarginTests.cs (1)
26
private static readonly TestComposition s_inProcessComposition =
EditorTestCompositions
.EditorFeatures;
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
55
using var workspace = EditorTestWorkspace.Create(WorkspaceXml, composition:
EditorTestCompositions
.EditorFeaturesWpf);
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
291
var composition =
EditorTestCompositions
.EditorFeatures
Options\GlobalOptionsTests.cs (1)
152
var composition =
EditorTestCompositions
.LanguageServerProtocolEditorFeatures.
Preview\PreviewWorkspaceTests.cs (2)
116
using var previewWorkspace = new PreviewWorkspace(
EditorTestCompositions
.EditorFeatures.GetHostServices());
149
var composition =
EditorTestCompositions
.EditorFeatures;
RenameTracking\RenameTrackingTestState.cs (1)
132
return EditorTestWorkspace.Create(xml, composition:
EditorTestCompositions
.EditorFeaturesWpf);
Structure\AbstractStructureTaggerProviderTests.cs (1)
18
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Structure\StructureTaggerTests.cs (8)
56
using var workspace = EditorTestWorkspace.CreateCSharp(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
123
using var workspace = EditorTestWorkspace.CreateCSharp(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
168
using var workspace = EditorTestWorkspace.CreateCSharp(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
213
using var workspace = EditorTestWorkspace.CreateCSharp(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
265
using var workspace = EditorTestWorkspace.CreateVisualBasic(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
321
using var workspace = EditorTestWorkspace.CreateVisualBasic(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
343
using var workspace = EditorTestWorkspace.CreateVisualBasic(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
375
using var workspace = EditorTestWorkspace.CreateCSharp(code, composition:
EditorTestCompositions
.EditorFeaturesWpf);
SymbolFinder\DependentTypeFinderTests.cs (2)
45
var composition =
EditorTestCompositions
.EditorFeatures.WithTestHostParts(host);
621
var composition =
EditorTestCompositions
.EditorFeatures.WithTestHostParts(host);
Tagging\AsynchronousTaggerTests.cs (2)
102
""", composition:
EditorTestCompositions
.EditorFeaturesWpf);
128
""", composition:
EditorTestCompositions
.EditorFeaturesWpf);
Tagging\TagSpanIntervalTreeTests.cs (1)
25
var exportProvider =
EditorTestCompositions
.Editor.ExportProviderFactory.CreateExportProvider();
TextEditor\OpenDocumentTests.cs (1)
29
var hostServices =
EditorTestCompositions
.EditorFeatures.GetHostServices();
TextEditor\TextBufferAssociatedViewServiceTests.cs (1)
37
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
ValueTracking\AbstractBaseValueTrackingTests.cs (1)
22
=> CreateWorkspace(code,
EditorTestCompositions
.EditorFeatures.WithTestHostParts(testHost));
Workspaces\ClassificationTypeNamesTests.cs (1)
34
var exportProvider =
EditorTestCompositions
.EditorFeatures.ExportProviderFactory.CreateExportProvider();
Workspaces\TextFactoryTests.cs (6)
26
using var workspace = new AdhocWorkspace(
EditorTestCompositions
.EditorFeatures.GetHostServices());
39
using var workspace = new AdhocWorkspace(
EditorTestCompositions
.EditorFeatures.GetHostServices());
52
using var workspace = new AdhocWorkspace(
EditorTestCompositions
.EditorFeatures.GetHostServices());
65
using var workspace = new AdhocWorkspace(
EditorTestCompositions
.EditorFeatures.GetHostServices());
81
using var workspace = new AdhocWorkspace(
EditorTestCompositions
.EditorFeatures.GetHostServices());
101
using var workspace = new AdhocWorkspace(
EditorTestCompositions
.EditorFeatures.GetHostServices());
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (7)
CodeDefinitionWindow\AbstractCodeDefinitionWindowTests.vb (1)
17
EditorTestCompositions
.EditorFeatures _
CodeFixes\CodeFixServiceTests.vb (2)
30
Private Shared ReadOnly s_compositionWithMockDiagnosticUpdateSourceRegistrationService As TestComposition =
EditorTestCompositions
.EditorFeatures
271
Dim composition =
EditorTestCompositions
.EditorFeatures.AddParts(
Compilation\CompilationTests.vb (1)
27
Dim composition =
EditorTestCompositions
.EditorFeatures.AddParts(
Diagnostics\DiagnosticProviderTests.vb (1)
37
Private Shared ReadOnly s_composition As TestComposition =
EditorTestCompositions
.EditorFeatures _
Diagnostics\DiagnosticServiceTests.vb (1)
31
Private Shared ReadOnly s_compositionWithMockDiagnosticUpdateSourceRegistrationService As TestComposition =
EditorTestCompositions
.EditorFeatures
GoToHelpers\GoToHelpers.vb (1)
20
Using workspace = EditorTestWorkspace.Create(workspaceDefinition, composition:=
EditorTestCompositions
.EditorFeatures.WithTestHostParts(testHost))
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
DocumentOutline\DocumentOutlineTestsBase.cs (1)
72
private static readonly TestComposition s_composition =
EditorTestCompositions
.LanguageServerProtocolEditorFeatures
Interactive\Commands\InteractiveWindowCommandHandlerTestState.cs (1)
45
: base(workspaceElement,
EditorTestCompositions
.InteractiveWindow, workspaceKind: null)
Interactive\Commands\ResetInteractiveTests.cs (1)
49
using var workspace = TestWorkspace.Create(WorkspaceXmlStr, composition:
EditorTestCompositions
.InteractiveWindow);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
ProjectSystemShim\Framework\TestEnvironment.vb (1)
52
Private Shared ReadOnly s_composition As TestComposition =
EditorTestCompositions
.EditorFeaturesWpf _
VisualStudioTestCompositions.vb (1)
18
Public Shared ReadOnly LanguageServices As TestComposition =
EditorTestCompositions
.EditorFeaturesWpf.
Microsoft.VisualStudio.LanguageServices.UnitTests (13)
LanguageBlockTests.vb (1)
247
Dim composition =
EditorTestCompositions
.EditorFeatures.AddParts(
SolutionExplorer\SourceGeneratorItemTests.vb (2)
142
composition:=
EditorTestCompositions
.EditorFeatures.AddParts(GetType(TestWorkspaceConfigurationService)))
183
composition:=
EditorTestCompositions
.EditorFeatures.AddParts(GetType(TestWorkspaceConfigurationService)))
Venus\DocumentService_IntegrationTests.vb (2)
41
Private Shared ReadOnly s_compositionWithMockDiagnosticUpdateSourceRegistrationService As TestComposition =
EditorTestCompositions
.EditorFeatures
65
Dim 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)
250
var composition =
EditorTestCompositions
.EditorFeatures.WithTestHostParts(TestHost.OutOfProcess);