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)
19
var composition = EditorTestCompositions.
EditorFeatures
.WithTestHostParts(testHost);
CodeActions\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (1)
35
EditorTestCompositions.
EditorFeatures
.AddParts(typeof(TestPickMembersService));
Completion\ArgumentProviders\ArgumentProviderOrderTests.cs (4)
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 (4)
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)));
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\EncapsulateFieldTestState.cs (1)
44
var workspace = EditorTestWorkspace.CreateCSharp(markup, composition: EditorTestCompositions.
EditorFeatures
);
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));
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
244
return EditorTestCompositions.
EditorFeatures
Rename\CSharpInlineRenameServiceTests.cs (1)
62
using var workspace = TestWorkspace.CreateCSharp(markup, composition: EditorTestCompositions.
EditorFeatures
);
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 (15)
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));
EditorTestCompositions.cs (2)
69
public static readonly TestComposition EditorFeaturesWpf =
EditorFeatures
79
public static readonly TestComposition LanguageServerProtocolEditorFeatures =
EditorFeatures
ExtractInterface\ExtractInterfaceTestState.cs (1)
23
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));
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 (1)
24
internal static TestComposition CompositionWithSolutionCrawler = EditorTestCompositions.
EditorFeatures
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 (41)
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 (1)
48
var composition = EditorTestCompositions.
EditorFeatures
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 (2)
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
;
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
291
var composition = EditorTestCompositions.
EditorFeatures
Preview\PreviewWorkspaceTests.cs (2)
116
using var previewWorkspace = new PreviewWorkspace(EditorTestCompositions.
EditorFeatures
.GetHostServices());
149
var composition = EditorTestCompositions.
EditorFeatures
;
Structure\AbstractStructureTaggerProviderTests.cs (1)
18
var exportProvider = EditorTestCompositions.
EditorFeatures
.ExportProviderFactory.CreateExportProvider();
SymbolFinder\DependentTypeFinderTests.cs (2)
45
var composition = EditorTestCompositions.
EditorFeatures
.WithTestHostParts(host);
621
var composition = EditorTestCompositions.
EditorFeatures
.WithTestHostParts(host);
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.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);