188 references to CreateCSharp
IdeBenchmarks (3)
FormatterBenchmarks.cs (1)
46using var workspace = TestWorkspace.CreateCSharp(text);
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
129using var workspace = TestWorkspace.CreateCSharp(testFile);
RegexClassifierBenchmarks.cs (1)
71using (var workspace = TestWorkspace.CreateCSharp(code, parseOptions))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Rename\CSharpInlineRenameServiceTests.cs (1)
60using var workspace = TestWorkspace.CreateCSharp(markup, composition: EditorTestCompositions.EditorFeatures);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\SuppressionAllCodeTests.cs (1)
28=> TestWorkspace.CreateCSharp(definition, (CSharpParseOptions)parseOptions, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService);
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
509using var workspace = TestWorkspace.CreateCSharp(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (106)
CodeFixes\CodeFixServiceTests.cs (2)
44using var workspace = TestWorkspace.CreateCSharp(code, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService, openDocuments: true); 758using var workspace = TestWorkspace.CreateCSharp(code, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService, openDocuments: true);
CodeGeneration\CodeGenerationTests.cs (1)
993: TestWorkspace.CreateCSharp(file, (CS.CSharpParseOptions)parseOptions, (CS.CSharpCompilationOptions)compilationOptions);
CodeRefactorings\CodeRefactoringServiceTest.cs (4)
44using var workspace = TestWorkspace.CreateCSharp(code, composition: FeaturesTestCompositions.Features); 95using var workspace = TestWorkspace.CreateCSharp(@"class Program {}", 157using var workspace = TestWorkspace.CreateCSharp("", composition: FeaturesTestCompositions.Features); 196using var workspace = TestWorkspace.CreateCSharp("", composition: FeaturesTestCompositions.Features);
Completion\CompletionServiceTests.cs (1)
39using var workspace = TestWorkspace.CreateCSharp(code, openDocuments: true);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
682using var workspace = TestWorkspace.CreateCSharp("class A { }"); 727using var workspace = TestWorkspace.CreateCSharp(source); 800using var workspace = TestWorkspace.CreateCSharp(source);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
76return TestWorkspace.CreateCSharp(source, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService);
FindSymbols\SymbolTreeInfoTests.cs (4)
20using var workspace = TestWorkspace.CreateCSharp(""); 41using var workspace = TestWorkspace.CreateCSharp(""); 64using var workspace = TestWorkspace.CreateCSharp(""); 86using var workspace = TestWorkspace.CreateCSharp("");
Snippets\RoslynLSPSnippetConvertTests.cs (1)
486=> TestWorkspace.CreateCSharp(code);
StackTraceExplorer\StackTraceExplorerTests.cs (3)
24using var workspace = TestWorkspace.CreateCSharp(code); 815using var workspace = TestWorkspace.CreateCSharp(@" 848using var workspace = TestWorkspace.CreateCSharp(code);
Structure\BlockStructureServiceTests.cs (4)
39using var workspace = TestWorkspace.CreateCSharp(code); 63using var workspace = TestWorkspace.CreateCSharp(code); 87using var workspace = TestWorkspace.CreateCSharp(code); 104using var workspace = TestWorkspace.CreateCSharp(code);
SymbolFinder\FindSymbolAtPositionTests.cs (2)
28using var workspace = TestWorkspace.CreateCSharp( 46using var workspace = TestWorkspace.CreateCSharp(
Utilities\SymbolEquivalenceComparerTests.cs (79)
50using var workspace = TestWorkspace.CreateCSharp(csharpCode); 121using var csharpWorkspace = TestWorkspace.CreateCSharp(csharpCode); 191using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 192using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 242using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 282using var workspace = TestWorkspace.CreateCSharp(code); 325using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 326using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 350using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 351using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 375using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 376using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 400using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 401using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 425using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 426using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 452using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 453using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 479using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 480using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 506using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 507using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 531using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 532using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 556using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 557using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 583using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 584using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 617using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 662using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 694using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 719using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 720using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 754using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 755using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 787using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 788using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 822using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 823using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 853using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 854using var workspace2 = TestWorkspace.CreateCSharp(csharpCode1); 930using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 931using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 967using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 968using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 992using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 993using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1017using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1018using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1048using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1049using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1078using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1079using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1109using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1110using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1149using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1150using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1179using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1180using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1209using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1210using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1240using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1241using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1271using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1272using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1303using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1304using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1340using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1341using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1404using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1405using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1467using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1468using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1530using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1531using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1618using var workspace1 = TestWorkspace.CreateCSharp(code); 1619using var workspace2 = TestWorkspace.CreateCSharp(code); 1715using var workspace1 = TestWorkspace.CreateCSharp(csharpCode, compilationOptions: new CS.CSharpCompilationOptions(OutputKind.NetModule, moduleName: "GooModule")); 1716using var workspace2 = TestWorkspace.CreateCSharp(csharpCode, compilationOptions: new CS.CSharpCompilationOptions(OutputKind.NetModule, moduleName: "BarModule"));
ValueTracking\CSharpValueTrackingTests.cs (1)
17=> TestWorkspace.CreateCSharp(code, composition: composition);
Microsoft.CodeAnalysis.Features.UnitTests (27)
FindUsages\DefinitionItemFactoryTests.cs (27)
128using var workspace = TestWorkspace.CreateCSharp("class C;"); 164using var workspace = TestWorkspace.CreateCSharp(""); 206using var workspace = TestWorkspace.CreateCSharp("class C;"); 242using var workspace = TestWorkspace.CreateCSharp(""); 284using var workspace = TestWorkspace.CreateCSharp("namespace N;"); 326using var workspace = TestWorkspace.CreateCSharp(""); 376using var workspace = TestWorkspace.CreateCSharp(""" 433using var workspace = TestWorkspace.CreateCSharp("namespace N {}"); 473using var workspace = TestWorkspace.CreateCSharp("namespace N {}"); 513using var workspace = TestWorkspace.CreateCSharp("class C;"); 555using var workspace = TestWorkspace.CreateCSharp(""); 659using var workspace = TestWorkspace.CreateCSharp("class C { dynamic F; }"); 696using var workspace = TestWorkspace.CreateCSharp("class C { (int a, int b) F; }"); 758using var workspace = TestWorkspace.CreateCSharp("class C { System.ValueTuple<int, int> F; }"); 814using var workspace = TestWorkspace.CreateCSharp("class C<T1, T2> { C<int, string> F; }"); 865using var workspace = TestWorkspace.CreateCSharp(""" 923using var workspace = TestWorkspace.CreateCSharp("class C<T>;"); 973using var workspace = TestWorkspace.CreateCSharp("class C { void M(int x) { } }"); 1028using var workspace = TestWorkspace.CreateCSharp("class C { int M; }"); 1080using var workspace = TestWorkspace.CreateCSharp("class C { int P { get; set; } }"); 1142using var workspace = TestWorkspace.CreateCSharp("class C { int P { get; set; } }"); 1199using var workspace = TestWorkspace.CreateCSharp("class C { int P { get; set; } }"); 1256using var workspace = TestWorkspace.CreateCSharp("abstract class C { abstract int this[int x] { get; set; } }"); 1323using var workspace = TestWorkspace.CreateCSharp(""" 1383using var workspace = TestWorkspace.CreateCSharp(""" 1440using var workspace = TestWorkspace.CreateCSharp("class C { void M(int x) { void F() {} } }"); 1498using var workspace = TestWorkspace.CreateCSharp("""
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
DesignerAttribute\DesignerAttributeServiceTests.cs (1)
117using var workspace = TestWorkspace.CreateCSharp(codeWithMarker, openDocuments: false);
F1Help\F1HelpTests.cs (1)
26using var workspace = TestWorkspace.CreateCSharp(markup, composition: VisualStudioTestCompositions.LanguageServices);
Microsoft.VisualStudio.LanguageServices.UnitTests (17)
Options\CSharpEditorConfigGeneratorTests.vb (2)
19Using workspace = TestWorkspace.CreateCSharp("") 277Using workspace = TestWorkspace.CreateCSharp("")
Preview\PreviewChangesTests.vb (2)
23Using workspace = TestWorkspace.CreateCSharp(<text> 123Using workspace = TestWorkspace.CreateCSharp(<text>
SymbolSearch\SymbolSearchUpdateEngineTests.vb (13)
26Using workspace = TestWorkspace.CreateCSharp("") 57Using workspace = TestWorkspace.CreateCSharp("") 85Using workspace = TestWorkspace.CreateCSharp("") 123Using workspace = TestWorkspace.CreateCSharp("") 166Using workspace = TestWorkspace.CreateCSharp("") 199Using workspace = TestWorkspace.CreateCSharp("") 247Using workspace = TestWorkspace.CreateCSharp("") 290Using workspace = TestWorkspace.CreateCSharp("") 338Using workspace = TestWorkspace.CreateCSharp("") 397Using workspace = TestWorkspace.CreateCSharp("") 441Using workspace = TestWorkspace.CreateCSharp("") 495Using workspace = TestWorkspace.CreateCSharp("") 555Using workspace = TestWorkspace.CreateCSharp("")
Roslyn.VisualStudio.Next.UnitTests (30)
Services\AssetProviderTests.cs (4)
50using var workspace = TestWorkspace.CreateCSharp(file: @""); 74using var workspace = TestWorkspace.CreateCSharp(code); 102using var workspace = TestWorkspace.CreateCSharp(code); 127using var workspace = TestWorkspace.CreateCSharp(code);
Services\SolutionServiceTests.cs (25)
47using var workspace = TestWorkspace.CreateCSharp(code); 64using var workspace = TestWorkspace.CreateCSharp(code1); 139using var workspace = TestWorkspace.CreateCSharp(code); 165using var workspace = TestWorkspace.CreateCSharp(""); 213using var workspace = TestWorkspace.CreateCSharp(""); 248using var workspace = TestWorkspace.CreateCSharp(""); 328using var workspace = TestWorkspace.CreateCSharp(code); 359using var workspace = TestWorkspace.CreateCSharp(code); 392using var workspace = TestWorkspace.CreateCSharp(code); 424using var workspace = TestWorkspace.CreateCSharp(code); 486using var workspace = TestWorkspace.CreateCSharp(@"public class C { }"); 505using var workspace = TestWorkspace.CreateCSharp(@""); 544using var workspace = TestWorkspace.CreateCSharp(code); 585using var workspace = TestWorkspace.CreateCSharp(code); 626using var workspace = TestWorkspace.CreateCSharp(code); 659using var workspace = TestWorkspace.CreateCSharp(code); 700using var workspace = TestWorkspace.CreateCSharp(code); 740using var workspace = TestWorkspace.CreateCSharp(code); 780using var workspace = TestWorkspace.CreateCSharp(code); 813using var workspace = TestWorkspace.CreateCSharp(code); 868using var workspace = TestWorkspace.CreateCSharp(code); 914using var workspace = TestWorkspace.CreateCSharp(code); 937using var workspace = TestWorkspace.CreateCSharp(code); 982using var workspace = TestWorkspace.CreateCSharp(code); 1260using var workspace = TestWorkspace.CreateCSharp(code);
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
252? TestWorkspace.CreateCSharp(code, parseOptions: options, composition: composition)