188 references to CreateCSharp
IdeBenchmarks (3)
FormatterBenchmarks.cs (1)
46
using var workspace = TestWorkspace.
CreateCSharp
(text);
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
129
using var workspace = TestWorkspace.
CreateCSharp
(testFile);
RegexClassifierBenchmarks.cs (1)
71
using (var workspace = TestWorkspace.
CreateCSharp
(code, parseOptions))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Rename\CSharpInlineRenameServiceTests.cs (1)
62
using 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)
508
using var workspace = TestWorkspace.
CreateCSharp
(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (106)
CodeFixes\CodeFixServiceTests.cs (2)
44
using var workspace = TestWorkspace.
CreateCSharp
(code, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService, openDocuments: true);
768
using 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)
44
using var workspace = TestWorkspace.
CreateCSharp
(code, composition: FeaturesTestCompositions.Features);
95
using var workspace = TestWorkspace.
CreateCSharp
(@"class Program {}",
157
using var workspace = TestWorkspace.
CreateCSharp
("", composition: FeaturesTestCompositions.Features);
196
using var workspace = TestWorkspace.
CreateCSharp
("", composition: FeaturesTestCompositions.Features);
Completion\CompletionServiceTests.cs (1)
39
using var workspace = TestWorkspace.
CreateCSharp
(code, openDocuments: true);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
694
using var workspace = TestWorkspace.
CreateCSharp
("class A { }");
739
using var workspace = TestWorkspace.
CreateCSharp
(source);
812
using var workspace = TestWorkspace.
CreateCSharp
(source);
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
77
return TestWorkspace.
CreateCSharp
(source, composition: s_compositionWithMockDiagnosticUpdateSourceRegistrationService);
FindSymbols\SymbolTreeInfoTests.cs (4)
20
using var workspace = TestWorkspace.
CreateCSharp
("");
41
using var workspace = TestWorkspace.
CreateCSharp
("");
64
using var workspace = TestWorkspace.
CreateCSharp
("");
86
using var workspace = TestWorkspace.
CreateCSharp
("");
Snippets\RoslynLSPSnippetConvertTests.cs (1)
486
=> TestWorkspace.
CreateCSharp
(code);
StackTraceExplorer\StackTraceExplorerTests.cs (3)
24
using var workspace = TestWorkspace.
CreateCSharp
(code);
815
using var workspace = TestWorkspace.
CreateCSharp
(@"
848
using var workspace = TestWorkspace.
CreateCSharp
(code);
Structure\BlockStructureServiceTests.cs (4)
39
using var workspace = TestWorkspace.
CreateCSharp
(code);
63
using var workspace = TestWorkspace.
CreateCSharp
(code);
87
using var workspace = TestWorkspace.
CreateCSharp
(code);
104
using var workspace = TestWorkspace.
CreateCSharp
(code);
SymbolFinder\FindSymbolAtPositionTests.cs (2)
28
using var workspace = TestWorkspace.
CreateCSharp
(
46
using var workspace = TestWorkspace.
CreateCSharp
(
Utilities\SymbolEquivalenceComparerTests.cs (79)
51
using var workspace = TestWorkspace.
CreateCSharp
(csharpCode);
122
using var csharpWorkspace = TestWorkspace.
CreateCSharp
(csharpCode);
192
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
193
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
243
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
283
using var workspace = TestWorkspace.
CreateCSharp
(code);
326
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
327
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
351
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
352
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
376
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
377
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
401
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
402
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
426
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
427
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
453
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
454
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
480
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
481
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
507
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
508
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
532
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
533
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
557
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
558
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
584
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
585
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
618
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
663
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
695
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
720
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
721
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
755
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
756
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
788
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
789
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
823
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
824
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
854
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
855
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode1);
931
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
932
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
968
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
969
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
993
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
994
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1018
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1019
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1049
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1050
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1079
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1080
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1110
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1111
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1150
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1151
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1180
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1181
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1210
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1211
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1241
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1242
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1272
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1273
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1304
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1305
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1341
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1342
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1405
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1406
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1468
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1469
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1531
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode1);
1532
using var workspace2 = TestWorkspace.
CreateCSharp
(csharpCode2);
1619
using var workspace1 = TestWorkspace.
CreateCSharp
(code);
1620
using var workspace2 = TestWorkspace.
CreateCSharp
(code);
1716
using var workspace1 = TestWorkspace.
CreateCSharp
(csharpCode, compilationOptions: new CS.CSharpCompilationOptions(OutputKind.NetModule, moduleName: "GooModule"));
1717
using 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)
128
using var workspace = TestWorkspace.
CreateCSharp
("class C;");
164
using var workspace = TestWorkspace.
CreateCSharp
("");
206
using var workspace = TestWorkspace.
CreateCSharp
("class C;");
242
using var workspace = TestWorkspace.
CreateCSharp
("");
284
using var workspace = TestWorkspace.
CreateCSharp
("namespace N;");
326
using var workspace = TestWorkspace.
CreateCSharp
("");
376
using var workspace = TestWorkspace.
CreateCSharp
("""
433
using var workspace = TestWorkspace.
CreateCSharp
("namespace N {}");
473
using var workspace = TestWorkspace.
CreateCSharp
("namespace N {}");
513
using var workspace = TestWorkspace.
CreateCSharp
("class C;");
555
using var workspace = TestWorkspace.
CreateCSharp
("");
659
using var workspace = TestWorkspace.
CreateCSharp
("class C { dynamic F; }");
696
using var workspace = TestWorkspace.
CreateCSharp
("class C { (int a, int b) F; }");
758
using var workspace = TestWorkspace.
CreateCSharp
("class C { System.ValueTuple<int, int> F; }");
814
using var workspace = TestWorkspace.
CreateCSharp
("class C<T1, T2> { C<int, string> F; }");
865
using var workspace = TestWorkspace.
CreateCSharp
("""
923
using var workspace = TestWorkspace.
CreateCSharp
("class C<T>;");
973
using var workspace = TestWorkspace.
CreateCSharp
("class C { void M(int x) { } }");
1028
using var workspace = TestWorkspace.
CreateCSharp
("class C { int M; }");
1080
using var workspace = TestWorkspace.
CreateCSharp
("class C { int P { get; set; } }");
1142
using var workspace = TestWorkspace.
CreateCSharp
("class C { int P { get; set; } }");
1199
using var workspace = TestWorkspace.
CreateCSharp
("class C { int P { get; set; } }");
1256
using var workspace = TestWorkspace.
CreateCSharp
("abstract class C { abstract int this[int x] { get; set; } }");
1323
using var workspace = TestWorkspace.
CreateCSharp
("""
1383
using var workspace = TestWorkspace.
CreateCSharp
("""
1440
using var workspace = TestWorkspace.
CreateCSharp
("class C { void M(int x) { void F() {} } }");
1498
using var workspace = TestWorkspace.
CreateCSharp
("""
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
DesignerAttribute\DesignerAttributeServiceTests.cs (1)
117
using var workspace = TestWorkspace.
CreateCSharp
(codeWithMarker, openDocuments: false);
F1Help\F1HelpTests.cs (1)
26
using var workspace = TestWorkspace.
CreateCSharp
(markup, composition: VisualStudioTestCompositions.LanguageServices);
Microsoft.VisualStudio.LanguageServices.UnitTests (17)
Options\CSharpEditorConfigGeneratorTests.vb (2)
19
Using workspace = TestWorkspace.
CreateCSharp
("")
276
Using workspace = TestWorkspace.
CreateCSharp
("")
Preview\PreviewChangesTests.vb (2)
23
Using workspace = TestWorkspace.
CreateCSharp
(<text>
123
Using workspace = TestWorkspace.
CreateCSharp
(<text>
SymbolSearch\SymbolSearchUpdateEngineTests.vb (13)
26
Using workspace = TestWorkspace.
CreateCSharp
("")
57
Using workspace = TestWorkspace.
CreateCSharp
("")
85
Using workspace = TestWorkspace.
CreateCSharp
("")
123
Using workspace = TestWorkspace.
CreateCSharp
("")
166
Using workspace = TestWorkspace.
CreateCSharp
("")
199
Using workspace = TestWorkspace.
CreateCSharp
("")
247
Using workspace = TestWorkspace.
CreateCSharp
("")
290
Using workspace = TestWorkspace.
CreateCSharp
("")
338
Using workspace = TestWorkspace.
CreateCSharp
("")
397
Using workspace = TestWorkspace.
CreateCSharp
("")
441
Using workspace = TestWorkspace.
CreateCSharp
("")
495
Using workspace = TestWorkspace.
CreateCSharp
("")
555
Using workspace = TestWorkspace.
CreateCSharp
("")
Roslyn.VisualStudio.Next.UnitTests (30)
Services\AssetProviderTests.cs (4)
49
using var workspace = TestWorkspace.
CreateCSharp
(file: @"");
73
using var workspace = TestWorkspace.
CreateCSharp
(code);
101
using var workspace = TestWorkspace.
CreateCSharp
(code);
126
using var workspace = TestWorkspace.
CreateCSharp
(code);
Services\SolutionServiceTests.cs (25)
48
using var workspace = TestWorkspace.
CreateCSharp
(code);
65
using var workspace = TestWorkspace.
CreateCSharp
(code1);
140
using var workspace = TestWorkspace.
CreateCSharp
(code);
166
using var workspace = TestWorkspace.
CreateCSharp
("");
214
using var workspace = TestWorkspace.
CreateCSharp
("");
249
using var workspace = TestWorkspace.
CreateCSharp
("");
329
using var workspace = TestWorkspace.
CreateCSharp
(code);
360
using var workspace = TestWorkspace.
CreateCSharp
(code);
393
using var workspace = TestWorkspace.
CreateCSharp
(code);
425
using var workspace = TestWorkspace.
CreateCSharp
(code);
487
using var workspace = TestWorkspace.
CreateCSharp
(@"public class C { }");
506
using var workspace = TestWorkspace.
CreateCSharp
(@"");
545
using var workspace = TestWorkspace.
CreateCSharp
(code);
586
using var workspace = TestWorkspace.
CreateCSharp
(code);
627
using var workspace = TestWorkspace.
CreateCSharp
(code);
660
using var workspace = TestWorkspace.
CreateCSharp
(code);
701
using var workspace = TestWorkspace.
CreateCSharp
(code);
741
using var workspace = TestWorkspace.
CreateCSharp
(code);
781
using var workspace = TestWorkspace.
CreateCSharp
(code);
814
using var workspace = TestWorkspace.
CreateCSharp
(code);
869
using var workspace = TestWorkspace.
CreateCSharp
(code);
915
using var workspace = TestWorkspace.
CreateCSharp
(code);
938
using var workspace = TestWorkspace.
CreateCSharp
(code);
983
using var workspace = TestWorkspace.
CreateCSharp
(code);
1261
using var workspace = TestWorkspace.
CreateCSharp
(code);
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
253
? TestWorkspace.
CreateCSharp
(code, parseOptions: options, composition: composition)