1 override of GetComposition
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (1)
32protected override TestComposition GetComposition()
29 references to GetComposition
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (19)
Completion\CompletionProviders\AbstractCSharpCompletionProviderTests.cs (1)
44=> EditorTestWorkspace.CreateCSharp(fileContents, composition: GetComposition());
Completion\CompletionProviders\AbstractInteractiveCSharpCompletionProviderTests.cs (1)
15=> InteractiveCSharpTestWorkspaceFixture.CreateInteractiveWorkspace(fileContents, composition: GetComposition());
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
444using var workspace = EditorTestWorkspace.Create(LanguageNames.CSharp, new CSharpCompilationOptions(OutputKind.ConsoleApplication), new CSharpParseOptions(), [text], composition: GetComposition());
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (4)
707var workspace = workspaceFixture.Target.GetWorkspace(GetComposition()); 2356var workspace = workspaceFixture.Target.GetWorkspace(GetComposition()); 2384var workspace = workspaceFixture.Target.GetWorkspace(GetComposition()); 2800var workspace = workspaceFixture.Target.GetWorkspace(GetComposition());
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (2)
687using var workspace = EditorTestWorkspace.CreateCSharp(markup, composition: GetComposition()); 1347using var workspace = EditorTestWorkspace.CreateCSharp(markup, composition: GetComposition());
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (6)
2463using var testWorkspace = EditorTestWorkspace.Create(xmlString, composition: GetComposition()); 2716using var testWorkspace = EditorTestWorkspace.Create(xmlString, composition: GetComposition()); 2771using var testWorkspace = EditorTestWorkspace.Create(xmlString, composition: GetComposition()); 3058using var workspace = EditorTestWorkspace.Create(LanguageNames.CSharp, new CSharpCompilationOptions(OutputKind.ConsoleApplication), new CSharpParseOptions(), [text], composition: GetComposition()); 3184using var workspace = EditorTestWorkspace.Create(text, composition: GetComposition()); 3222using var workspace = EditorTestWorkspace.Create(source, composition: GetComposition());
Completion\CompletionProviders\PartialMethodCompletionProviderTests.cs (2)
886var workspace = workspaceFixture.Target.GetWorkspace(GetComposition()); 918var workspace = workspaceFixture.Target.GetWorkspace(GetComposition());
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (1)
33=> base.GetComposition().AddParts(typeof(MockSnippetInfoService));
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (1)
1511workspaceFixture.GetWorkspace(GetComposition());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (10)
Completion\AbstractCompletionProviderTests.cs (10)
323var workspace = workspaceFixture.Target.GetWorkspace(markup, GetComposition()); 349var workspace = workspaceFixture.Target.GetWorkspace(markup, GetComposition()); 365var workspace = workspaceFixture.Target.GetWorkspace(markup, GetComposition(), workspaceKind: workspaceKind); 380using (workspaceFixture.Target.GetWorkspace(markupBeforeCommit, GetComposition())) 406workspaceFixture.Target.GetWorkspace(markupBeforeCommit, GetComposition()); 549workspaceFixture.Target.GetWorkspace(GetComposition()); 955using var testWorkspace = TestWorkspace.Create(xmlString, composition: GetComposition()); 1011using var testWorkspace = TestWorkspace.Create(xmlString, composition: GetComposition()); 1040using var testWorkspace = EditorTestWorkspace.Create(xmlString, composition: GetComposition()); 1348workspaceFixture.Target.GetWorkspace(markup, GetComposition());