567 references to Regular11
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (2)
2839
<Project Language=""C#"" AssemblyName=""Assembly1"" CommonReferences=""true"" LanguageVersion=""{TestOptions.
Regular11
.LanguageVersion.ToDisplayString()}"">
2878
<Project Language=""C#"" AssemblyName=""Assembly1"" CommonReferences=""true"" LanguageVersion=""{TestOptions.
Regular11
.LanguageVersion.ToDisplayString()}"">
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (6)
5621
var comp = CompileAndVerify(source, parseOptions: TestOptions.
Regular11
);
5704
var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseWinMD);
5821
var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseWinMD);
5902
CompileAndVerify(text, parseOptions: TestOptions.
Regular11
, expectedOutput: PASS).VerifyIL("Test.Main", @"
5961
", parseOptions: TestOptions.
Regular11
, expectedOutput: @"
6026
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugExe);
Emit\NumericIntPtrTests.cs (1)
10325
var parseOptions = (useCSharp11 ? TestOptions.
Regular11
: TestOptions.Regular10).WithNoRefSafetyRulesAttribute();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (118)
Attributes\AttributeTests.cs (1)
10908
comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
FlowAnalysis\FlowDiagnosticTests.cs (10)
1237
var verifier = CompileAndVerify(program, parseOptions: TestOptions.
Regular11
);
1297
var verifier = CompileAndVerify(program, parseOptions: TestOptions.
Regular11
);
1410
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
);
1467
comp = CreateCompilation(text, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.
Regular11
);
1485
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
);
1788
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
);
2427
comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.
Regular11
);
2584
comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.
Regular11
);
2711
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
2744
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
FlowAnalysis\FlowTests.cs (1)
5935
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
FlowAnalysis\LocalFunctions.cs (2)
741
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
1512
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
FlowAnalysis\RegionAnalysisTests.cs (1)
6473
compilation = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
RefReadonlyParameterTests.cs (61)
183
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
964
CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1028
CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1574
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(
1638
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1700
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1738
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
1752
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1790
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
1804
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1845
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
1866
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
1887
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
1901
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1936
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
1950
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1985
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
1999
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2034
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
2048
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2073
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
2087
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2105
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2139
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
2169
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
2199
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
2213
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2232
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2269
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
3181
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
3461
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
3692
CompileAndVerify(source, expectedOutput: "25 15 15", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
3833
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
3908
CompileAndVerify(new[] { source1, source2 }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
3918
CompileAndVerify(new[] { source1, source3 }, expectedOutput: "1", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
4001
CompileAndVerify(source, expectedOutput: "ECC", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
4042
CompileAndVerify(source, expectedOutput: "YCC", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
4133
CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics2);
4142
CreateCompilation(new[] { source1, source3 }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4166
CompileAndVerify(new[] { source1, source4 }, expectedOutput: expectedOutput4, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
4191
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
4216
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
4427
CompileAndVerify(source, expectedOutput: "E", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
7234
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
7238
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
7664
CompileAndVerify(source1, expectedOutput: "12", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
7721
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
7744
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
7776
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
7826
CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
7996
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(
8081
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8230
var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
, options: TestOptions.UnsafeDebugExe);
8293
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.
Regular11
, options: TestOptions.UnsafeDebugExe,
8342
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(
8372
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(
8549
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
8578
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
8603
CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
8648
CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
Semantics\InlineArrayTests.cs (7)
2495
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
6020
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
6186
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
8340
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
15195
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
16976
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
18824
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular11
);
Semantics\PatternMatchingTests.cs (22)
8612
comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
8654
comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
10215
comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
10256
comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
10575
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10606
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10626
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10648
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10676
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10703
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10734
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
10752
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10782
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
10800
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10824
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10854
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
10910
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
11181
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular11
);
11361
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
11385
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
11406
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
11463
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular11
);
Semantics\PatternMatchingTests_ListPatterns.cs (1)
464
compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.
Regular11
);
Semantics\PrimaryConstructorTests.cs (12)
59
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
85
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
114
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
156
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
181
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
217
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
242
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
279
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
313
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
334
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
351
var comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseDll);
3197
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (216)
Semantics\FunctionPointerTests.cs (4)
57
var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.
Regular11
);
88
var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
119
var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.
Regular11
);
141
var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
Semantics\GlobalUsingDirectiveTests.cs (2)
5001
CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
5044
CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
Semantics\InterpolationTests.cs (6)
1261
var parseOptions = TestOptions.
Regular11
;
1421
var parseOptions = TestOptions.
Regular11
;
8050
InterpolatedStringHandlerArgumentAttribute_MismatchedRefTypes(TestOptions.
Regular11
, "ref", "in", expression,
14988
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.
Regular11
, targetFramework: TargetFramework.Net50);
15036
comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.
Regular11
, targetFramework: TargetFramework.Net50);
18020
var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, parseOptions: TestOptions.
Regular11
);
Semantics\LambdaTests.cs (2)
7134
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
8253
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
Semantics\LocalFunctionTests.cs (39)
7252
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
7282
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
7310
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
7339
var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
;
7413
var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
;
7509
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
7558
var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
;
7618
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
8516
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
8536
comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.
Regular11
);
8670
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
8728
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
8767
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
8808
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
8850
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
8884
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
8914
var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
;
8983
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9004
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9028
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9052
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9076
var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9099
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9149
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9166
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9186
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9355
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9383
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9418
var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
;
9462
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9482
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9574
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9591
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9611
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9631
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9654
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9708
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
9736
var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
;
9777
var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
Semantics\NameOfTests.cs (25)
1814
CompileAndVerify(source, parseOptions: TestOptions.
Regular11
, expectedOutput: expectedOutput).VerifyDiagnostics();
1851
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1907
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1948
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1968
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1993
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2012
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2038
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2057
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2076
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2097
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2116
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
2128
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2142
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2158
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2174
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2194
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2210
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2227
CompileAndVerify(source, parseOptions: TestOptions.
Regular11
, expectedOutput: "StaticMethod").VerifyDiagnostics();
2248
CompileAndVerify(source, parseOptions: TestOptions.
Regular11
, expectedOutput: "Length").VerifyDiagnostics();
2272
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2297
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2322
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
2346
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
2367
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
Semantics\OverloadResolutionTests.cs (13)
9468
CreateCompilation(code, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
9522
CreateCompilation(code, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
9551
CreateCompilation(code, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
9590
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
9622
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
9661
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
9694
CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
9729
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
9791
CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
9811
CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
9831
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
9862
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
9941
CreateCompilation(code, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
Semantics\RecordStructTests.cs (6)
1902
var verifier = CompileAndVerify(src, parseOptions: TestOptions.
Regular11
);
2169
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.
Regular11
, verify: Verification.Skipped);
2867
var verifier = CompileAndVerify(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.
Regular11
, verify: Verification.Skipped);
4005
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
7541
var verifier = CompileAndVerify(src, parseOptions: TestOptions.
Regular11
);
11207
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
Semantics\RefEscapingTests.cs (12)
351
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular11
);
1804
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular11
);
2153
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular11
);
2231
comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
2486
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular11
);
2585
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular11
);
4444
comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular11
);
4509
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
8745
var comp = CreateCompilation(new[] { source0, source1 }, parseOptions: TestOptions.
Regular11
);
8755
var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions: TestOptions.
Regular11
);
8758
comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions: TestOptions.
Regular11
);
8762
comp0 = CreateCompilation(source0, parseOptions: TestOptions.
Regular11
);
Semantics\RefFieldTests.cs (25)
150
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.
Regular11
, targetFramework: TargetFramework.Net70);
211
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70);
285
comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70);
1842
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70);
20333
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
, targetFramework: TargetFramework.Net70);
20354
var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.
Regular11
, targetFramework: TargetFramework.Net70);
22202
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
22219
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
22264
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
22294
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
22318
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
22351
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
22380
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
22415
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
22444
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
22493
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
22516
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics().EmitToImageReference();
22531
CreateCompilation(source2, [ref1a], parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
22545
CreateCompilation(source2, [ref1], parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
22569
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics().EmitToImageReference();
22584
CreateCompilation(source2, [ref1a], parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
22598
CreateCompilation(source2, [ref1], parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
22769
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
22804
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
22839
parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedDiagnostics);
Semantics\SemanticErrorTests.cs (7)
6476
var verifier = CompileAndVerify(text, parseOptions: TestOptions.
Regular11
);
6988
var verifier = CompileAndVerify(text, parseOptions: TestOptions.
Regular11
).
7035
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
7069
CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
7105
var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.
Regular11
);
7179
var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.
Regular11
);
12982
var verifier = CompileAndVerify(text, parseOptions: TestOptions.
Regular11
);
Semantics\StructConstructorTests.cs (17)
1985
var verifier = CompileAndVerify(source, parseOptions: TestOptions.
Regular11
, expectedOutput:
2025
var verifier = CompileAndVerify(source, parseOptions: TestOptions.
Regular11
, expectedOutput: "(, )");
2580
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
2662
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
2712
comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.
Regular11
);
2765
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.
Regular11
, expectedOutput:
2876
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.
Regular11
, expectedOutput:
2947
var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.
Regular11
, expectedOutput:
3297
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
3418
comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular11
);
3895
CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.
Regular11
)
3901
CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisSupportedVersion), ReportDiagnostic.Error), parseOptions: TestOptions.
Regular11
)
3907
var verifier = CompileAndVerify(source, parseOptions: TestOptions.
Regular11
);
3990
CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.
Regular11
)
4021
var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.
Regular11
);
4064
var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.
Regular11
);
4709
var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.
Regular11
);
Semantics\UninitializedNonNullableFieldTests.cs (4)
874
var verifier = CompileAndVerify(source, options: WithNullableEnable(), parseOptions: TestOptions.
Regular11
);
983
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
1065
var verifier = CompileAndVerify(source, parseOptions: TestOptions.
Regular11
);
1797
var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.
Regular11
);
Semantics\UnsafeTests.cs (37)
11407
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expected);
11408
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expected);
11455
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expected);
11457
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expectedWithUnsafe);
11511
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expected);
11512
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expected);
11568
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
11587
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
11674
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expected);
11675
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(expected);
11721
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
11734
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
12762
var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.
Regular11
);
12781
var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.
Regular11
);
12800
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
12816
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
12832
var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.
Regular11
);
12851
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13329
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13332
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13381
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13384
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13423
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13432
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13485
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13488
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13520
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13526
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13562
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13565
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13627
var comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13660
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13745
var comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13787
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13888
var comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular11
);
13900
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
13932
var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
);
Semantics\Utf8StringsLiteralsTests.cs (5)
453
comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
1666
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
1719
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
1772
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
1834
comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
Semantics\WarningVersionTests.cs (12)
180
parseOptions: TestOptions.
Regular11
,
191
parseOptions: TestOptions.
Regular11
,
259
parseOptions: TestOptions.
Regular11
,
270
parseOptions: TestOptions.
Regular11
,
347
parseOptions: TestOptions.
Regular11
,
361
parseOptions: TestOptions.
Regular11
,
468
parseOptions: TestOptions.
Regular11
,
479
parseOptions: TestOptions.
Regular11
,
555
parseOptions: TestOptions.
Regular11
,
566
parseOptions: TestOptions.
Regular11
,
642
parseOptions: TestOptions.
Regular11
,
653
parseOptions: TestOptions.
Regular11
,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (108)
Compilation\UsedAssembliesTests.cs (1)
3692
Compilation comp = CreateCompilation(source, parseOptions: TestOptions.
Regular11
, references: references);
DocumentationComments\CrefTests.cs (4)
6731
verify(CreateCompilation(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
6775
verify(CreateCompilation(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
6838
verify(CreateCompilation(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6868
verify(CreateCompilation(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
Symbols\CheckedUserDefinedOperatorsTests.cs (38)
45
compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.
Regular11
);
537
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
657
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
709
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
822
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
871
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
893
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
924
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
1075
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
1125
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
1178
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
1227
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
1262
compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.
Regular11
);
1718
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
1840
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
1896
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
1950
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
2075
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
2124
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
2156
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
2316
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
2410
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
2496
compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.
Regular11
);
2876
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
3042
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
3177
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
3272
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
3322
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
3432
compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
3828
compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
4207
compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
4668
compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
4788
compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
5216
compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
5689
compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
6316
compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
6421
compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
6538
compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular11
);
Symbols\DefaultInterfaceImplementationTests.cs (10)
1624
parseOptions: isStatic ? TestOptions.
Regular11
: TestOptions.Regular8);
1680
parseOptions: isStatic ? TestOptions.
Regular11
: TestOptions.Regular8);
1724
parseOptions: TestOptions.
Regular11
,
1911
parseOptions: TestOptions.
Regular11
,
1972
parseOptions: TestOptions.
Regular11
);
2103
parseOptions: TestOptions.
Regular11
,
2182
parseOptions: TestOptions.
Regular11
,
2204
parseOptions: TestOptions.
Regular11
,
3043
parseOptions: TestOptions.
Regular11
,
9258
parseOptions: isStatic ? TestOptions.
Regular11
: TestOptions.Regular10,
Symbols\GenericConstraintTests.cs (4)
5809
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
6475
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
6498
CreateCompilation(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
6967
var compilation = CreateCompilation(source, parseOptions: TestOptions.
Regular11
);
Symbols\RequiredMembersTests.cs (3)
246
comp = CreateCompilationWithRequiredMembers(code, parseOptions: TestOptions.
Regular11
);
315
var comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
376
comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.
Regular11
);
Symbols\Source\BaseClassTests.cs (1)
2281
var comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
);
Symbols\Source\ClsComplianceTests.cs (7)
397
CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
495
var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", parseOptions: TestOptions.
Regular11
).EmitToImageReference();
496
var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", parseOptions: TestOptions.
Regular11
).EmitToImageReference();
497
var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", parseOptions: TestOptions.
Regular11
).EmitToImageReference();
499
CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
689
CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
810
CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
Symbols\Source\EventTests.cs (1)
1356
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
Symbols\Source\UsingAliasTests.cs (4)
773
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
803
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
830
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
875
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (14)
4408
CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4520
CreateCompilationWithMscorlib46(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
)
4547
CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
10790
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
);
16736
CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
21336
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(6));
21339
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(7));
21397
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(6));
21400
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(7));
21442
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(6));
21461
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(7));
21484
var comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(7));
21502
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(7));
21529
comp = CreateCompilation(text, parseOptions: TestOptions.
Regular11
, options: TestOptions.DebugDll.WithWarningLevel(7));
Symbols\UnsignedRightShiftTests.cs (21)
398
parseOptions: TestOptions.
Regular11
);
901
parseOptions: TestOptions.
Regular11
);
1016
parseOptions: TestOptions.
Regular11
);
1057
parseOptions: TestOptions.
Regular11
);
1454
parseOptions: TestOptions.
Regular11
);
1862
parseOptions: TestOptions.
Regular11
);
2728
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
2900
compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.
Regular11
.WithDocumentationMode(DocumentationMode.Diagnose));
3121
parseOptions: TestOptions.
Regular11
);
3215
parseOptions: TestOptions.
Regular11
);
3309
parseOptions: TestOptions.
Regular11
);
3403
parseOptions: TestOptions.
Regular11
);
3437
parseOptions: TestOptions.
Regular11
);
3454
parseOptions: TestOptions.
Regular11
);
3489
parseOptions: TestOptions.
Regular11
);
3506
parseOptions: TestOptions.
Regular11
);
3541
parseOptions: TestOptions.
Regular11
);
3558
parseOptions: TestOptions.
Regular11
);
3593
parseOptions: TestOptions.
Regular11
);
3610
parseOptions: TestOptions.
Regular11
);
3690
CompileAndVerify(source, expectedOutput: @"150150", parseOptions: TestOptions.
Regular11
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (116)
LexicalAndXml\LexicalErrorTests.cs (39)
976
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
998
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1020
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1043
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1065
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1088
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1112
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1135
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1158
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1181
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1205
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1262
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1335
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1371
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1393
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1419
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1440
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1462
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1487
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1512
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1534
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1561
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1588
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1612
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1637
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1662
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1687
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1714
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1741
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1766
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1794
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1822
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1848
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1873
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1901
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1929
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
1955
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1975
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
1998
CreateCompilation(test, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
Parsing\CrefParsingTests.cs (4)
350
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
365
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
381
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
397
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
Parsing\DeclarationScopeParsingTests.cs (12)
244
UsingDeclaration(source, TestOptions.
Regular11
);
276
UsingDeclaration(source, TestOptions.
Regular11
,
498
UsingDeclaration(source, TestOptions.
Regular11
,
547
UsingDeclaration(source, TestOptions.
Regular11
,
1139
UsingExpression(source, TestOptions.
Regular11
,
1164
UsingExpression(source, TestOptions.
Regular11
,
1292
UsingDeclaration(source, TestOptions.
Regular11
,
1352
UsingDeclaration(source, TestOptions.
Regular11
);
2903
UsingTree(source, TestOptions.
Regular11
,
2955
UsingTree(source, TestOptions.
Regular11
,
11188
UsingTree(source, TestOptions.
Regular11
,
11275
UsingTree(source, TestOptions.
Regular11
,
Parsing\ExpressionParsingTests.cs (7)
6608
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
6631
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
6666
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
6701
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
6724
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
6759
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
6794
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
Parsing\MemberDeclarationParsingTests.cs (6)
28
private static readonly CSharpParseOptions RequiredMembersOptions = TestOptions.
Regular11
;
428
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
479
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
562
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
645
foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.
Regular11
})
2069
options: TestOptions.
Regular11
,
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (1)
86
}", parseOptions: TestOptions.
Regular11
).VerifyDiagnostics();
Parsing\RefReadonlyTests.cs (17)
501
UsingDeclaration(source, TestOptions.
Regular11
);
544
UsingDeclaration(source, TestOptions.
Regular11
);
588
UsingDeclaration(source, TestOptions.
Regular11
);
631
UsingDeclaration(source, TestOptions.
Regular11
);
675
UsingDeclaration(source, TestOptions.
Regular11
);
719
UsingDeclaration(source, TestOptions.
Regular11
);
764
UsingDeclaration(source, TestOptions.
Regular11
);
808
UsingDeclaration(source, TestOptions.
Regular11
);
852
UsingDeclaration(source, TestOptions.
Regular11
);
896
UsingDeclaration(source, TestOptions.
Regular11
);
950
UsingDeclaration(source, TestOptions.
Regular11
, expectedDiagnostics);
1012
UsingDeclaration(source, TestOptions.
Regular11
, expectedDiagnostics);
1074
UsingDeclaration(source, TestOptions.
Regular11
, expectedDiagnostics);
1135
UsingDeclaration(source, TestOptions.
Regular11
, expectedDiagnostics);
1187
UsingDeclaration(source, TestOptions.
Regular11
);
1230
UsingDeclaration(source, TestOptions.
Regular11
);
1273
UsingDeclaration(source, TestOptions.
Regular11
);
Parsing\UsingDirectiveParsingTests.cs (22)
860
UsingTree(text, options: TestOptions.
Regular11
);
861
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4036
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4050
UsingTree(text, options: TestOptions.
Regular11
,
4086
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4097
UsingTree(text, options: TestOptions.
Regular11
,
4224
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4241
UsingTree(text, options: TestOptions.
Regular11
,
4285
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4299
UsingTree(text, options: TestOptions.
Regular11
,
4456
UsingTree(text, options: TestOptions.
Regular11
);
4457
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4499
UsingTree(text, options: TestOptions.
Regular11
);
4500
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4616
UsingTree(text, options: TestOptions.
Regular11
);
4617
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4700
UsingTree(text, options: TestOptions.
Regular11
);
4701
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
4941
UsingTree(text, options: TestOptions.
Regular11
);
4942
CreateCompilation(text, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
5019
UsingTree(text, options: TestOptions.
Regular11
);
5020
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular11
).VerifyDiagnostics(
Parsing\Utf8StringLiteralsParsingTests.cs (8)
114
UsingExpression(@"""hello""u8", options: TestOptions.
Regular11
);
150
UsingExpression(@"@""hello""u8", options: TestOptions.
Regular11
);
186
UsingExpression(@"""hello""U8", options: TestOptions.
Regular11
);
222
UsingExpression(@"@""hello""U8", options: TestOptions.
Regular11
);
594
foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.
Regular11
, TestOptions.Regular10 })
612
foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.
Regular11
, TestOptions.Regular10 })
748
foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.
Regular11
, TestOptions.Regular10 })
770
foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.
Regular11
, TestOptions.Regular10 })