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)
62using 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)
508using var workspace = TestWorkspace.CreateCSharp(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (106)
CodeFixes\CodeFixServiceTests.cs (2)
44using var workspace = TestWorkspace.CreateCSharp(code, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService, openDocuments: true); 768using var workspace = TestWorkspace.CreateCSharp(code, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService, openDocuments: true);
CodeGeneration\CodeGenerationTests.cs (1)
994: 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)
694using var workspace = TestWorkspace.CreateCSharp("class A { }"); 739using var workspace = TestWorkspace.CreateCSharp(source); 812using var workspace = TestWorkspace.CreateCSharp(source);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
77return 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)
51using var workspace = TestWorkspace.CreateCSharp(csharpCode); 122using var csharpWorkspace = TestWorkspace.CreateCSharp(csharpCode); 192using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 193using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 243using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 283using var workspace = TestWorkspace.CreateCSharp(code); 326using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 327using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 351using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 352using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 376using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 377using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 401using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 402using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 426using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 427using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 453using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 454using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 480using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 481using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 507using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 508using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 532using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 533using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 557using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 558using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 584using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 585using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 618using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 663using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 695using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 720using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 721using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 755using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 756using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 788using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 789using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 823using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 824using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 854using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 855using var workspace2 = TestWorkspace.CreateCSharp(csharpCode1); 931using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 932using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 968using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 969using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 993using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 994using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1018using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1019using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1049using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1050using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1079using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1080using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1110using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1111using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1150using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1151using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1180using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1181using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1210using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1211using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1241using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1242using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1272using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1273using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1304using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1305using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1341using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1342using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1405using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1406using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1468using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1469using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1531using var workspace1 = TestWorkspace.CreateCSharp(csharpCode1); 1532using var workspace2 = TestWorkspace.CreateCSharp(csharpCode2); 1619using var workspace1 = TestWorkspace.CreateCSharp(code); 1620using var workspace2 = TestWorkspace.CreateCSharp(code); 1716using var workspace1 = TestWorkspace.CreateCSharp(csharpCode, compilationOptions: new CS.CSharpCompilationOptions(OutputKind.NetModule, moduleName: "GooModule")); 1717using 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("") 276Using 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)
49using var workspace = TestWorkspace.CreateCSharp(file: @""); 73using var workspace = TestWorkspace.CreateCSharp(code); 101using var workspace = TestWorkspace.CreateCSharp(code); 126using var workspace = TestWorkspace.CreateCSharp(code);
Services\SolutionServiceTests.cs (25)
48using var workspace = TestWorkspace.CreateCSharp(code); 65using var workspace = TestWorkspace.CreateCSharp(code1); 140using var workspace = TestWorkspace.CreateCSharp(code); 166using var workspace = TestWorkspace.CreateCSharp(""); 214using var workspace = TestWorkspace.CreateCSharp(""); 249using var workspace = TestWorkspace.CreateCSharp(""); 329using var workspace = TestWorkspace.CreateCSharp(code); 360using var workspace = TestWorkspace.CreateCSharp(code); 393using var workspace = TestWorkspace.CreateCSharp(code); 425using var workspace = TestWorkspace.CreateCSharp(code); 487using var workspace = TestWorkspace.CreateCSharp(@"public class C { }"); 506using var workspace = TestWorkspace.CreateCSharp(@""); 545using var workspace = TestWorkspace.CreateCSharp(code); 586using var workspace = TestWorkspace.CreateCSharp(code); 627using var workspace = TestWorkspace.CreateCSharp(code); 660using var workspace = TestWorkspace.CreateCSharp(code); 701using var workspace = TestWorkspace.CreateCSharp(code); 741using var workspace = TestWorkspace.CreateCSharp(code); 781using var workspace = TestWorkspace.CreateCSharp(code); 814using var workspace = TestWorkspace.CreateCSharp(code); 869using var workspace = TestWorkspace.CreateCSharp(code); 915using var workspace = TestWorkspace.CreateCSharp(code); 938using var workspace = TestWorkspace.CreateCSharp(code); 983using var workspace = TestWorkspace.CreateCSharp(code); 1261using var workspace = TestWorkspace.CreateCSharp(code);
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
253? TestWorkspace.CreateCSharp(code, parseOptions: options, composition: composition)