128 references to CreateCSharp
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (95)
AutomaticCompletion\AutomaticBraceCompletionTests.cs (3)
566using var session = CreateSession(EditorTestWorkspace.CreateCSharp(code), '(', ')'); 593using var session = CreateSession(EditorTestWorkspace.CreateCSharp(code), '(', ')'); 1682EditorTestWorkspace.CreateCSharp(code),
AutomaticCompletion\AutomaticBracketCompletionTests.cs (1)
326EditorTestWorkspace.CreateCSharp(code),
AutomaticCompletion\AutomaticLessAndGreaterThanCompletionTests.cs (1)
437EditorTestWorkspace.CreateCSharp(code),
AutomaticCompletion\AutomaticLiteralCompletionTests.cs (2)
650EditorTestWorkspace.CreateCSharp(code), 657EditorTestWorkspace.CreateCSharp(code),
AutomaticCompletion\AutomaticParenthesisCompletionTests.cs (1)
199EditorTestWorkspace.CreateCSharp(code),
BlockCommentEditing\BlockCommentEditingTests.cs (1)
718=> EditorTestWorkspace.CreateCSharp(initialMarkup);
BlockCommentEditing\CloseBlockCommentTests.cs (1)
370=> EditorTestWorkspace.CreateCSharp(initialMarkup);
BraceHighlighting\BraceHighlightingTests.cs (1)
20=> EditorTestWorkspace.CreateCSharp(markup, parseOptions: options);
BraceMatching\CSharpBraceMatcherTests.cs (1)
18=> EditorTestWorkspace.CreateCSharp(code, options);
BracePairs\CSharpBracePairsTests.cs (1)
15=> EditorTestWorkspace.CreateCSharp(input);
Classification\AbstractCSharpClassifierTests.cs (1)
20return EditorTestWorkspace.CreateCSharp(code, parseOptions: options, composition: composition, isMarkup: false);
Classification\SemanticClassifierTests.cs (1)
3918using var workspace = EditorTestWorkspace.CreateCSharp("");
Classification\SyntacticTaggerTests.cs (2)
38using var workspace = EditorTestWorkspace.CreateCSharp(code); 90using var workspace = EditorTestWorkspace.CreateCSharp(code);
Classification\TotalClassifierTests.cs (2)
3037using var workspace = EditorTestWorkspace.CreateCSharp("""" 3139using var workspace = EditorTestWorkspace.CreateCSharp(""""
CodeGeneration\SyntaxGeneratorTests.cs (2)
25using var workspace = EditorTestWorkspace.CreateCSharp(""" 59using var workspace = EditorTestWorkspace.CreateCSharp("""
CommentSelection\CSharpCommentSelectionTests.cs (1)
130using var workspace = EditorTestWorkspace.CreateCSharp(markup);
CommentSelection\CSharpToggleBlockCommentCommandHandlerTests.cs (1)
249=> EditorTestWorkspace.CreateCSharp(markup, composition: composition);
CommentSelection\CSharpToggleLineCommentCommandHandlerTests.cs (1)
1138=> EditorTestWorkspace.CreateCSharp(markup, composition: composition);
CompleteStatement\CSharpCompleteStatementCommandHandlerTests.cs (1)
5284=> EditorTestWorkspace.CreateCSharp(code);
Completion\CompletionProviders\AbstractCSharpCompletionProviderTests.cs (1)
44=> EditorTestWorkspace.CreateCSharp(fileContents, composition: GetComposition());
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (2)
687using var workspace = EditorTestWorkspace.CreateCSharp(markup, composition: GetComposition()); 1347using var workspace = EditorTestWorkspace.CreateCSharp(markup, composition: GetComposition());
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
372using var workspace = EditorTestWorkspace.CreateCSharp(code);
Debugging\DataTipInfoGetterTests.cs (1)
18=> EditorTestWorkspace.CreateCSharp(markup);
Debugging\LocationInfoGetterTests.cs (1)
24using var workspace = EditorTestWorkspace.CreateCSharp(markup, parseOptions);
Debugging\NameResolverTests.cs (2)
22using var workspace = EditorTestWorkspace.CreateCSharp(text); 33using var workspace = EditorTestWorkspace.CreateCSharp(" ");
Debugging\ProximityExpressionsGetterTests.cs (1)
71using var workspace = EditorTestWorkspace.CreateCSharp(markup);
DecompiledSource\DecompiledSourceFormattingTests.cs (1)
255using var workspace = EditorTestWorkspace.CreateCSharp(input);
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (5)
56using var workspace = EditorTestWorkspace.CreateCSharp(source, TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 87using (var ideEngineWorkspace = EditorTestWorkspace.CreateCSharp(source, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService)) 104using var compilerEngineWorkspace = EditorTestWorkspace.CreateCSharp(source, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 123using var workspace = EditorTestWorkspace.CreateCSharp(source, TestOptions.Regular, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService); 337using var compilerEngineWorkspace = EditorTestWorkspace.CreateCSharp(source);
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
56using var workspace = EditorTestWorkspace.CreateCSharp(source, composition: GetComposition());
DocumentationComments\DocumentationCommentTests.cs (1)
2894=> EditorTestWorkspace.CreateCSharp(code);
DocumentationComments\XmlTagCompletionTests.cs (1)
23=> EditorTestWorkspace.CreateCSharp(initialMarkup);
EncapsulateField\EncapsulateFieldTestState.cs (1)
44var workspace = EditorTestWorkspace.CreateCSharp(markup, composition: EditorTestCompositions.EditorFeatures);
ExtractMethod\ExtractMethodBase.cs (6)
38using var workspace = EditorTestWorkspace.CreateCSharp(codeWithMarker, parseOptions: parseOptions); 49using var workspace = EditorTestWorkspace.CreateCSharp(codeWithMarker, parseOptions: parseOptions); 70using var workspace = EditorTestWorkspace.CreateCSharp(codeWithMarker); 85using var workspace = EditorTestWorkspace.CreateCSharp(codeWithMarker, parseOptions: parseOptions); 169using var workspace = EditorTestWorkspace.CreateCSharp(codeWithMarker, parseOptions: parseOptions); 196using var workspace = EditorTestWorkspace.CreateCSharp(code, CodeAnalysis.CSharp.Test.Utilities.TestOptions.Regular);
ExtractMethod\ExtractMethodMiscellaneousTests.cs (1)
134using var workspace = EditorTestWorkspace.CreateCSharp(markupCode, composition: EditorTestCompositions.EditorFeaturesWpf);
FixInterpolatedVerbatimString\FixInterpolatedVerbatimStringCommandHandlerTests.cs (1)
27var workspace = EditorTestWorkspace.CreateCSharp(inputMarkup);
Formatting\CodeCleanupTests.cs (3)
787using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf.AddParts(typeof(TCodefix))); 838return EditorTestWorkspace.CreateCSharp(string.Empty, composition: EditorTestCompositions.EditorFeaturesWpf); 876using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf);
Formatting\CSharpNewDocumentFormattingServiceTests.cs (1)
34=> EditorTestWorkspace.CreateCSharp(testCode, parseOptions);
Formatting\FormattingEngineTests.cs (2)
435using var workspace = EditorTestWorkspace.CreateCSharp(code); 2944using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: parseOptions);
Formatting\Indentation\CSharpFormatterTestsBase.cs (1)
110using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: s_composition);
Formatting\Indentation\SmartIndenterEnterOnTokenTests.cs (2)
1399using var workspace = EditorTestWorkspace.CreateCSharp(code); 1439using var workspace = EditorTestWorkspace.CreateCSharp(code);
Formatting\Indentation\SmartIndenterTests.cs (3)
3458using var workspace = EditorTestWorkspace.CreateCSharp(markup, parseOptions: option, composition: s_compositionWithTestFormattingRules); 3514using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: option); 3543using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: option);
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (2)
3378using var workspace = EditorTestWorkspace.CreateCSharp(markup); 3412using var workspace = EditorTestWorkspace.CreateCSharp(initialMarkup);
Formatting\Indentation\SmartTokenFormatterFormatTokenTests.cs (1)
611using var workspace = EditorTestWorkspace.CreateCSharp(code);
InlineDiagnostics\InlineDiagnosticsTaggerProviderTests.cs (1)
39using var workspace = EditorTestWorkspace.CreateCSharp(content, composition: SquiggleUtilities.WpfCompositionWithSolutionCrawler);
Intents\IntentTestsBase.cs (1)
33using var workspace = EditorTestWorkspace.CreateCSharp(priorDocumentText, composition: EditorTestCompositions.EditorFeatures);
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
53using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.Script); 81using var workspace = EditorTestWorkspace.CreateCSharp(code, TestOptions.Script); 110using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.Script); 166using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions: TestOptions.Script);
KeywordHighlighting\AbstractCSharpKeywordHighlighterTests.cs (1)
18=> EditorTestWorkspace.CreateCSharp(code, options, composition: Composition);
LineSeparators\LineSeparatorTests.cs (1)
597using var workspace = EditorTestWorkspace.CreateCSharp(contents, options);
MoveToNamespace\MoveToNamespaceTests.cs (1)
1277using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: s_compositionWithoutOptions);
NavigateTo\NavigateToSearcherTests.cs (5)
120using var workspace = EditorTestWorkspace.CreateCSharp(""); 155using var workspace = EditorTestWorkspace.CreateCSharp(""); 195using var workspace = EditorTestWorkspace.CreateCSharp(""); 232using var workspace = EditorTestWorkspace.CreateCSharp(""); 269using var workspace = EditorTestWorkspace.CreateCSharp("");
NavigateTo\NavigateToTests.cs (1)
28=> EditorTestWorkspace.CreateCSharp(content, composition: composition);
ObsoleteSymbol\CSharpObsoleteSymbolTests.cs (1)
15=> EditorTestWorkspace.CreateCSharp(markup);
Organizing\AbstractOrganizerTests.cs (1)
28using var workspace = EditorTestWorkspace.CreateCSharp(initial, options);
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
209using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions);
QuickInfo\SemanticQuickInfoSourceTests.cs (2)
34using var workspace = EditorTestWorkspace.CreateCSharp(markup, options); 43using var workspace = EditorTestWorkspace.CreateCSharp(markup, compilationOptions: options);
QuickInfo\SyntacticQuickInfoSourceTests.cs (1)
601using var workspace = EditorTestWorkspace.CreateCSharp(code, parseOptions);
ReassignedVariable\CSharpReassignedVariableTests.cs (1)
16=> EditorTestWorkspace.CreateCSharp(markup);
SpellCheck\SpellCheckFixerProviderTests.cs (1)
16=> EditorTestWorkspace.CreateCSharp(content);
SpellCheck\SpellCheckSpanTests.cs (1)
17=> EditorTestWorkspace.CreateCSharp(content);
SplitComment\SplitCommentCommandHandlerTests.cs (1)
17=> EditorTestWorkspace.CreateCSharp(markup);
TaskList\CSharpTaskListTests.cs (1)
17=> EditorTestWorkspace.CreateCSharp(codeWithMarker, composition: composition);
TextStructureNavigation\TextStructureNavigatorTests.cs (2)
26=> EditorTestWorkspace.CreateCSharp(code); 482using var workspace = EditorTestWorkspace.CreateCSharp(code, options);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
ExtractInterface\ExtractInterfaceTestState.cs (1)
46? EditorTestWorkspace.CreateCSharp(markup, composition: Composition, compilationOptions: compilationOptions, parseOptions: parseOptions)
Formatting\CoreFormatterTestsBase.cs (1)
159? EditorTestWorkspace.CreateCSharp(codeWithMarker, composition: s_composition, parseOptions: parseOptions)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (18)
CodeFixes\CodeFixServiceTests.cs (1)
347var workspace = EditorTestWorkspace.CreateCSharp(code, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService, openDocuments: true);
CommentSelection\ToggleBlockCommentCommandHandlerTests.cs (1)
1508=> EditorTestWorkspace.CreateCSharp(markup, composition: composition);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
504using var workspace = EditorTestWorkspace.CreateCSharp("class A {}", composition: s_editorFeaturesCompositionWithMockDiagnosticUpdateSourceRegistrationService.AddParts(typeof(TestDocumentTrackingService))); 854using var workspace = EditorTestWorkspace.CreateCSharp("// This file will get a diagnostic", composition: s_featuresCompositionWithMockDiagnosticUpdateSourceRegistrationService.WithTestHostParts(testHost));
FindReferences\FindReferencesCommandHandlerTests.cs (1)
61using var workspace = EditorTestWorkspace.CreateCSharp("class C { C() { new C(); } }");
Formatting\InferredIndentationTests.cs (1)
61var workspace = EditorTestWorkspace.CreateCSharp(string.Join("\r\n", lines), openDocuments: true);
Structure\StructureTaggerTests.cs (5)
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); 375using var workspace = EditorTestWorkspace.CreateCSharp(code, composition: EditorTestCompositions.EditorFeaturesWpf);
Tagging\AsynchronousTaggerTests.cs (5)
43using var workspace = EditorTestWorkspace.CreateCSharp(""" 98using var workspace = EditorTestWorkspace.CreateCSharp(""" 120using var workspace = EditorTestWorkspace.CreateCSharp(""" 146using var workspace = EditorTestWorkspace.CreateCSharp(""" 202using var workspace = EditorTestWorkspace.CreateCSharp("""
TextEditor\TryGetDocumentTests.cs (2)
24using var workspace = EditorTestWorkspace.CreateCSharp(code); 52using var workspace = EditorTestWorkspace.CreateCSharp(code);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (5)
CodeModel\FileCodeModelTestHelpers.cs (1)
31var workspace = EditorTestWorkspace.CreateCSharp(file, composition: CodeModelTestHelpers.Composition);
DocumentOutline\DocumentOutlineTestsBase.cs (1)
79var workspace = EditorTestWorkspace.CreateCSharp(code, composition: s_composition);
Options\OptionViewModelTests.cs (3)
52using var workspace = EditorTestWorkspace.CreateCSharp(""); 75using var workspace = EditorTestWorkspace.CreateCSharp(""); 89using var workspace = EditorTestWorkspace.CreateCSharp("");
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (7)
44Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 72Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 90Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 116Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 152Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 191Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition) 223Using workspace = EditorTestWorkspace.CreateCSharp(String.Empty, composition:=s_composition)
ReferenceManager\VisualStudioMetadataReferenceManagerTests.vb (1)
18Using workspace = EditorTestWorkspace.CreateCSharp("")