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