558 references to Regular12
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (29)
CodeGen\CodeGenAsyncIteratorTests.cs (4)
657
comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular12
);
703
var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular12
);
862
var comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular12
);
910
var comp = CreateCompilationWithAsyncIterator(source, parseOptions: TestOptions.
Regular12
);
CodeGen\CodeGenAwaitForeachTests.cs (14)
1700
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
);
1767
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
);
1818
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
);
2089
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
2138
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
2180
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
2378
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2449
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2509
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput, verify: Verification.FailsILVerify).VerifyDiagnostics();
2607
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
2671
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
2715
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
2779
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
2819
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
CodeGen\CodeGenAwaitUsingTests.cs (11)
3125
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3169
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics(expectedDiagnostics);
3207
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
3244
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3283
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3332
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
3365
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3400
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3438
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3474
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3525
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
CodeGen\IndexAndRangeTests.cs (7)
201
comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.
Regular12
);
237
comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.
Regular12
);
279
comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.
Regular12
);
1721
comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.
Regular12
);
1763
comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.
Regular12
);
1957
var comp = CreateCompilationWithIndex(source, parseOptions: TestOptions.
Regular12
);
2485
comp = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.
Regular12
);
Emit\NumericIntPtrTests.cs (1)
1377
CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (241)
Attributes\AttributeTests.cs (1)
10901
comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
FlowAnalysis\FlowTests.cs (1)
5933
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "c").VerifyDiagnostics(expectedDiagnostic);
OverloadResolutionPriorityTests.cs (2)
862
CreateCompilation([source, OverloadResolutionPriorityAttributeDefinition], parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
882
CompileAndVerify(consumingSource, references: [definingComp.ToMetadataReference()], parseOptions: TestOptions.
Regular12
, expectedOutput: "8765").VerifyDiagnostics();
RefReadonlyParameterTests.cs (65)
258
CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1589
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics(expectedDiagnostics);
1643
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
1715
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1739
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1767
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1791
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1825
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1846
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1867
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1888
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1916
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1937
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1965
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
1986
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2014
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2035
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2053
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
2074
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2092
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
2110
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
2140
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2170
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2200
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2218
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
2247
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2284
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
3196
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
3473
CompileAndVerify(source, expectedOutput: "object5", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
3701
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
3848
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
3909
CompileAndVerify(new[] { source1, source2 }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
3927
CreateCompilation(new[] { source1, source3 }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
4010
CompileAndVerify(source, expectedOutput: "CCC", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
4054
CompileAndVerify(source, expectedOutput: "CCC", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
4134
CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics2);
4155
CompileAndVerify(new[] { source1, source3 }, expectedOutput: expectedOutput3, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics3);
4167
CompileAndVerify(new[] { source1, source4 }, expectedOutput: expectedOutput4, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
4192
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
4217
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
4436
CompileAndVerify(source, expectedOutput: "C", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
7007
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7032
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7061
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7259
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedWarnings);
7277
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
7673
CompileAndVerify(source2, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
7688
CreateCompilation(source3, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
7739
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
7764
CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
7790
CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
7843
CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
7853
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
8023
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8082
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8251
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8276
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeDebugExe,
8308
CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeDebugExe,
8356
CompileAndVerify(source2, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeDebugExe,
8384
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics);
8569
CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
8596
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
8615
CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
8671
CompileAndVerify(source2, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
8684
CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
RefStructInterfacesTests.cs (74)
47
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
80
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
162
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
194
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
279
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
317
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
409
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
441
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
527
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
565
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
811
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
845
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
1032
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
1353
comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
);
1406
comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
);
1929
comp7 = CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
);
1982
comp8 = CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
);
4389
CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4439
CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
5468
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
5601
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
5865
CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7274
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
7320
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
7330
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
7358
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
7386
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
8686
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
8728
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
8738
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
8762
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
8788
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
8827
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
11756
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
11812
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
11819
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
11841
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
11876
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
13706
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
13764
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
13780
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
13814
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
13853
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
13910
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
16139
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
16181
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
16191
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
16215
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
16242
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
16285
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
17391
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
17467
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
17477
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
17510
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
17550
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
18903
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
18943
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
18950
comp2 = CreateCompilation(src1 + src2, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
18974
var comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
19000
var comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
19039
var comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
20041
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
20054
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
20086
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
20096
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics();
20298
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
20311
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
20343
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
20353
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics();
28725
var comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
28738
comp2 = CreateCompilation(text2 + text1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
28766
var comp3 = CreateCompilation(text3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
28806
var comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
28822
comp2 = CreateCompilation(text2 + text1, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular12
);
RefUnsafeInIteratorAndAsyncTests.cs (13)
33
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
61
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
89
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
119
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
154
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics(expectedDiagnostics);
175
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
206
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics(expectedDiagnostics);
251
CreateCompilation(source, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
286
CreateCompilation(source, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
324
CreateCompilation(source, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
418
CreateCompilation(source, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
573
CreateCompilation(source, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
838
CreateCompilation(source, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
Semantics\CollectionExpressionTests.cs (18)
840
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics(
1048
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics(
1409
verify(TestOptions.
Regular12
, expectedType12);
1735
parseOptions: TestOptions.
Regular12
,
1935
parseOptions: TestOptions.
Regular12
,
1973
parseOptions: TestOptions.
Regular12
,
2084
parseOptions: TestOptions.
Regular12
,
2216
CreateCompilation(source, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(
2244
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics(
2336
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
2374
CreateCompilation(source, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
2422
parseOptions: TestOptions.
Regular12
,
2504
parseOptions: TestOptions.
Regular12
,
2593
parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2673
parseOptions: TestOptions.
Regular12
,
2780
parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2856
parseOptions: TestOptions.
Regular12
,
2946
parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
Semantics\InlineArrayTests.cs (31)
2492
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
6017
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
6183
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
8337
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
15192
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
16973
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
18821
comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
20350
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
20812
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21027
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21072
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21123
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21174
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21241
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21281
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21325
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21418
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
21470
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
21768
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22090
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22272
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22325
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22384
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22443
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22508
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22548
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22592
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
22681
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
22731
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
23289
CreateCompilation(src, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(
23340
foreach (var parseOptions in new[] { TestOptions.
Regular12
, TestOptions.Regular13, TestOptions.RegularPreview })
Semantics\LockTests.cs (1)
1630
CreateCompilation(sources, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
Semantics\OutVarTests.cs (1)
19624
parseOptions: TestOptions.
Regular12
);
Semantics\ParamsCollectionTests.cs (22)
3982
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
4029
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
4076
comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
4096
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
4144
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
4191
comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
4246
comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
4315
comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
);
4335
comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All), parseOptions: TestOptions.
Regular12
);
4411
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
6369
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
6442
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
6480
comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
6593
comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
6671
comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
7285
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
7401
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
7477
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
7513
comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
8000
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
8081
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
8117
comp = CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular12
);
Semantics\PrimaryConstructorTests.cs (12)
66
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
92
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
121
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
163
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
191
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
224
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
252
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
289
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
320
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
337
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
354
comp = CreateCompilation(src1, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseDll);
3193
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.cs (1)
3450
comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.
Regular12
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (220)
Semantics\DelegateTypeTests.cs (49)
1542
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.
Regular12
, options: TestOptions.ReleaseExe);
2068
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2122
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2187
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2250
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2307
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2346
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2389
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2429
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2479
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2527
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2575
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2624
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2677
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2711
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2769
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
2798
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
3067
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3100
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3129
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3550
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
3646
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
6818
CreateCompilation([source1, source2], parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
6833
CompileAndVerify([source1, source3], parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6874
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6915
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6956
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6997
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7053
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7100
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput).VerifyDiagnostics();
7135
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7171
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7207
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7256
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
7299
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
13434
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13475
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13508
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput).VerifyDiagnostics();
13538
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13605
CompileAndVerify(source3, [comp2Ref, comp1b.EmitToImageReference()], parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13644
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
13711
CreateCompilation(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
13767
CreateCompilation([source1, source2], parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
13788
CompileAndVerify([source1, source3], parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13848
CreateCompilation(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
13869
CompileAndVerify(source4, [comp2Ref, comp1bRef], parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13910
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput).VerifyDiagnostics();
13953
CompileAndVerify(source3, [comp2Ref, comp1aRef], parseOptions: TestOptions.
Regular12
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13982
CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput).VerifyDiagnostics();
Semantics\DynamicTests.cs (10)
5636
var parseOptions = version switch { 12 => TestOptions.
Regular12
, 13 => TestOptions.Regular13, _ => TestOptions.RegularPreview };
11314
var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
11367
var comp1 = CreateCompilation(source1, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
11414
var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
11447
var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
11491
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
11532
var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
11581
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
11633
var comp = CreateCompilation(source, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
11676
var comp1 = CreateCompilation(source1, options: TestOptions.DebugExe, targetFramework: TargetFramework.StandardAndCSharp, parseOptions: TestOptions.
Regular12
);
Semantics\FunctionPointerTests.cs (3)
69
comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.
Regular12
);
98
comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
125
comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.
Regular12
);
Semantics\LambdaTests.cs (2)
7139
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
8258
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
Semantics\LocalFunctionTests.cs (1)
2369
var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
.WithFeature("run-nullable-analysis", "never"));
Semantics\NameOfTests.cs (17)
1822
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput).VerifyDiagnostics();
1856
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput).VerifyDiagnostics();
1912
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput).VerifyDiagnostics();
1953
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: expectedOutput).VerifyDiagnostics();
1973
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "Length").VerifyDiagnostics();
1998
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2017
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "Length").VerifyDiagnostics();
2043
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "Length").VerifyDiagnostics();
2062
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "StaticProp").VerifyDiagnostics();
2081
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "StaticProp").VerifyDiagnostics();
2102
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "M").VerifyDiagnostics();
2121
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "StaticMethod").VerifyDiagnostics();
2277
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "StaticMethod").VerifyDiagnostics();
2302
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "Prop").VerifyDiagnostics();
2327
CompileAndVerify(source, parseOptions: TestOptions.
Regular12
, expectedOutput: "Prop").VerifyDiagnostics();
2351
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
2372
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
Semantics\NativeIntegerTests.cs (1)
4382
CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
Semantics\OverloadResolutionTests.cs (13)
9480
CompileAndVerify(code, expectedOutput: "5", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9523
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9552
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9602
CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9634
CompileAndVerify(source, expectedOutput: "555", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9673
CompileAndVerify(source, expectedOutput: "555", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9707
parseOptions: TestOptions.
Regular12
, verify: Verification.Fails).VerifyDiagnostics(expectedDiagnostics);
9741
CompileAndVerify(source, expectedOutput: "555", verify: Verification.FailsILVerify, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9792
CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
9812
CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
9843
CompileAndVerify(source, expectedOutput: "object5", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9874
CompileAndVerify(source, expectedOutput: "object5", parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
9971
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
Semantics\RefLocalsAndReturnsTests.cs (12)
1295
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
1336
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3191
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3227
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3256
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3298
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics();
3329
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
3352
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3386
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3416
CreateCompilation(code, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3454
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
3484
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(
Semantics\SemanticErrorTests.cs (1)
15333
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
Semantics\SpanStackSafetyTests.cs (5)
990
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
1054
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
1132
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
1201
CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.
Regular12
).VerifyDiagnostics(
1827
CreateCompilationWithSpan(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
Semantics\TopLevelStatementsTests.cs (1)
1123
comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular12
);
Semantics\UnsafeTests.cs (105)
278
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
301
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
324
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
348
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
379
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
421
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
468
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
610
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(
639
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
664
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
811
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
873
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
900
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
924
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
955
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics();
983
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics();
1006
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics();
1034
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics();
1066
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics();
1098
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyEmitDiagnostics();
1126
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
1157
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1179
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1202
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1227
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1245
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1263
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
1292
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1309
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
1329
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
1348
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1366
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1437
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1462
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1485
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1510
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1528
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1546
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
1575
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1592
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
1611
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1657
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1683
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1707
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1736
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1755
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1774
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
1804
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1822
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
1848
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1928
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1954
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1978
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
2007
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2026
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
2045
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
2075
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2093
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(
2119
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
2196
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2216
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2240
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2263
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2282
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2301
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(
2328
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2343
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(
2363
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2401
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2423
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2441
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2463
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2488
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2516
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2541
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2576
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2595
CreateCompilation(code, parseOptions: TestOptions.
Regular12
, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics();
3198
CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3217
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3259
CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
3269
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
10455
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
10828
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedDiagnostics);
11420
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expected);
11421
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expected);
11459
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expected);
11461
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expectedWithUnsafe);
11539
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expected);
11540
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expected);
11604
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
11623
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
11696
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expected);
11697
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expected);
11745
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
11758
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
13348
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
13351
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular12
);
13403
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
13406
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular12
);
13444
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
13456
comp = CreateCompilation(csharp, parseOptions: TestOptions.
Regular12
);
13718
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
13863
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
13906
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
13939
comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
DocumentationComments\CrefTests.cs (4)
6739
verify(CreateCompilation(source, parseOptions: TestOptions.
Regular12
.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics());
6796
verify(CreateCompilation(source, parseOptions: TestOptions.
Regular12
.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6839
verify(CreateCompilation(source, parseOptions: TestOptions.
Regular12
.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
6889
verify(CreateCompilation(source, parseOptions: TestOptions.
Regular12
.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics));
Symbols\GenericConstraintTests.cs (9)
5833
CreateCompilation(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
5841
CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
6477
CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
6500
CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
6525
CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
6540
CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
6974
compilation = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
7005
var compilation = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
7011
compilation = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
Symbols\PartialPropertiesTests.cs (1)
4855
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular12
);
Symbols\Source\BaseClassTests.cs (2)
2318
var comp = CreateCompilation(text, parseOptions: TestOptions.
Regular12
);
2339
comp = CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
);
Symbols\Source\ClsComplianceTests.cs (4)
405
CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
762
CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
840
CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
849
CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics();
Symbols\Source\UsingAliasTests.cs (1)
890
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(expected);
Symbols\SymbolErrorTests.cs (5)
4443
CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4517
CreateCompilationWithMscorlib46(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
)
4567
CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
16759
CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
16770
CreateCompilationWithMscorlib40AndSystemCore(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
LexicalAndXml\LexicalErrorTests.cs (3)
268
ParserErrorMessageTests.ParseAndValidate(test, TestOptions.
Regular12
,
287
ParserErrorMessageTests.ParseAndValidate(test, TestOptions.
Regular12
,
306
ParserErrorMessageTests.ParseAndValidate(test, TestOptions.
Regular12
,
LexicalAndXml\LexicalTests.cs (2)
1152
var token = LexToken(text, TestOptions.
Regular12
);
1333
var token = LexToken(text, TestOptions.
Regular12
);
Parsing\RefReadonlyTests.cs (17)
504
UsingDeclaration(source, TestOptions.
Regular12
);
547
UsingDeclaration(source, TestOptions.
Regular12
);
591
UsingDeclaration(source, TestOptions.
Regular12
);
634
UsingDeclaration(source, TestOptions.
Regular12
);
678
UsingDeclaration(source, TestOptions.
Regular12
);
722
UsingDeclaration(source, TestOptions.
Regular12
);
767
UsingDeclaration(source, TestOptions.
Regular12
);
811
UsingDeclaration(source, TestOptions.
Regular12
);
855
UsingDeclaration(source, TestOptions.
Regular12
);
899
UsingDeclaration(source, TestOptions.
Regular12
);
953
UsingDeclaration(source, TestOptions.
Regular12
, expectedDiagnostics);
1015
UsingDeclaration(source, TestOptions.
Regular12
, expectedDiagnostics);
1077
UsingDeclaration(source, TestOptions.
Regular12
, expectedDiagnostics);
1138
UsingDeclaration(source, TestOptions.
Regular12
, expectedDiagnostics);
1190
UsingDeclaration(source, TestOptions.
Regular12
);
1233
UsingDeclaration(source, TestOptions.
Regular12
);
1276
UsingDeclaration(source, TestOptions.
Regular12
);
Parsing\UsingDirectiveParsingTests.cs (11)
901
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4133
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4180
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4343
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4401
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4540
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4580
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4782
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
4863
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
5097
CreateCompilation(text, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(
5177
CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular12
).VerifyDiagnostics(