464 references to Regular13
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (29)
CodeGen\CodeGenAsyncIteratorTests.cs (4)
660
comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular13
);
715
comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular13
);
874
comp = CreateCompilationWithAsyncIterator(source, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular13
);
929
comp = CreateCompilationWithAsyncIterator(source, parseOptions: TestOptions.
Regular13
);
CodeGen\CodeGenAwaitForeachTests.cs (14)
1713
comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
);
1775
comp = CreateCompilationWithTasksExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
1831
comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
);
2104
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
2153
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
2195
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
2382
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
2453
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
2510
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput, verify: Verification.FailsILVerify).VerifyDiagnostics();
2614
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
2678
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
2727
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
2786
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
2831
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
CodeGen\CodeGenAwaitUsingTests.cs (11)
3137
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
3170
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
3208
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
3251
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
, verify: Verification.FailsILVerify).VerifyDiagnostics();
3290
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
3333
CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
3372
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
3412
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
3450
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
3486
CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
3532
var comp = CreateCompilationWithTasksExtensions(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
CodeGen\IndexAndRangeTests.cs (7)
57
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
233
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
275
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1567
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1759
var comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1976
comp = CreateCompilationWithIndex(source, parseOptions: useCsharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2197
var comp = CreateCompilationWithIndexAndRange(source, parseOptions: useCsharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
Emit\NumericIntPtrTests.cs (1)
1408
CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net70).VerifyDiagnostics(expectedDiagnostics);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (241)
FirstClassSpanTests.cs (92)
59
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
110
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
156
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
192
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
305
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
361
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
418
parseOptions: TestOptions.
Regular13
);
449
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
480
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
510
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
540
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
571
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
599
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
652
parseOptions: TestOptions.
Regular13
);
682
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
712
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
859
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
941
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
1023
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
1265
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1296
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1327
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1364
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1398
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1428
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1458
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3194
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, verify: Verification.FailsILVerify)
3484
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3544
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3604
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3667
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3742
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3786
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3908
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4014
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4622
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
4731
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4772
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4812
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4938
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4974
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5028
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5078
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5170
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
5460
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5496
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5655
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5686
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5911
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
6001
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6034
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6067
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6100
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6133
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6174
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6271
verifyWithMissing(missingRosHelper, TestOptions.
Regular13
, expectedDiagnostics);
6272
verifyWithMissing(missingSpanHelper, TestOptions.
Regular13
, expectedDiagnostics);
6344
verifyWithMissing(missingRosHelper, TestOptions.
Regular13
, expectedDiagnostics);
6345
verifyWithMissing(missingSpanHelper, TestOptions.
Regular13
, expectedDiagnostics);
6379
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6420
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6461
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6503
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6544
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6606
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6674
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6956
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
7179
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
7301
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7367
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
7417
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
7491
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7583
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7779
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7806
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7890
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7940
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7968
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7998
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
8025
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8081
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8129
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8161
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8218
CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8242
comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions: TestOptions.
Regular13
);
8271
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8309
CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8335
comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions: TestOptions.
Regular13
);
8362
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8393
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
8434
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
8501
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
OverloadResolutionPriorityTests.cs (2)
874
var definingComp = CreateCompilation([source, OverloadResolutionPriorityAttributeDefinition], parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
884
CompileAndVerify(consumingSource, references: [definingComp.ToMetadataReference()], parseOptions: TestOptions.
Regular13
, expectedOutput: "4321").VerifyDiagnostics();
RefReadonlyParameterTests.cs (3)
7012
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
7037
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
7066
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
RefStructInterfacesTests.cs (67)
45
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
78
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
160
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
192
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
277
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
315
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
407
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
439
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
525
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
563
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
809
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
843
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
1351
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
1404
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
1927
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
1980
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
4386
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
4395
comp = CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4402
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4437
CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
4445
CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5466
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
5599
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
5863
CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
7277
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
7337
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
7361
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
7393
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8689
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8745
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8765
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8795
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8834
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
11759
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
11826
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
11844
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
11889
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13716
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13793
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13817
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13869
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13926
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16142
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16198
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16218
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16249
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16292
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
17398
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
17487
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
17513
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
17566
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
18906
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
18957
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
18977
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
19007
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
19046
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
20040
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20053
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20085
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20095
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20297
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20310
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20342
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20352
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
28751
comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
28769
comp3 = CreateCompilation(text3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
28835
comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
RefUnsafeInIteratorAndAsyncTests.cs (13)
41
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
69
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
97
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
127
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
155
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
180
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
207
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
266
CreateCompilation(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
301
CreateCompilation(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
336
CreateCompilation(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
430
CreateCompilation(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
588
CreateCompilation(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics(expectedDiagnostics);
850
CreateCompilation(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
Semantics\CollectionExpressionTests.cs (17)
837
CompileAndVerify([source, s_collectionExtensions], parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput);
1044
CompileAndVerify([source, s_collectionExtensions], parseOptions: TestOptions.
Regular13
,
1410
verify(TestOptions.
Regular13
, expectedType13);
1921
parseOptions: TestOptions.
Regular13
,
1960
parseOptions: TestOptions.
Regular13
,
2075
var comp = CreateCompilation(new[] { source, s_collectionExtensionsWithSpan }, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80);
2205
parseOptions: TestOptions.
Regular13
,
2241
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
2333
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput);
2363
parseOptions: TestOptions.
Regular13
,
2408
parseOptions: TestOptions.
Regular13
,
2492
parseOptions: TestOptions.
Regular13
,
2585
parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
2661
parseOptions: TestOptions.
Regular13
,
2772
parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
2844
parseOptions: TestOptions.
Regular13
,
2938
parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
Semantics\InlineArrayTests.cs (26)
17034
var comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
17079
var comp = CreateCompilation(src + Buffer10Definition, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe);
20357
CompileAndVerify(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe,
20819
CompileAndVerify(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe,
21037
CompileAndVerify(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe,
21090
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21140
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21189
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21253
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21297
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21337
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21430
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
21488
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
21775
CompileAndVerify(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe,
22097
CompileAndVerify(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe,
22282
CompileAndVerify(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe,
22343
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22401
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22458
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22520
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22564
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22604
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
22693
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
22749
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyEmitDiagnostics(expectedDiagnostics);
23316
CreateCompilation(src, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net80).VerifyDiagnostics(expectedDiagnostics);
23340
foreach (var parseOptions in new[] { TestOptions.Regular12, TestOptions.
Regular13
, TestOptions.RegularPreview })
Semantics\ParamsCollectionTests.cs (21)
3979
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4026
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4073
comp = CreateCompilation(src2 + src1, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4093
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4141
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4188
comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4242
comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4312
comp = CreateCompilation(src2 + src1, options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4332
comp2 = CreateCompilation(src2, references: [comp1Ref], options: TestOptions.ReleaseDll, parseOptions: TestOptions.
Regular13
);
4408
comp2 = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
5787
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: "List<byte>");
5809
parseOptions: TestOptions.
Regular13
,
6365
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
6439
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
6585
comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
6663
comp1 = CreateCompilation(src1, references: [comp0Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
7281
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
7397
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
7474
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
7996
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
8078
comp = CreateCompilation(src2, references: [comp1Ref], targetFramework: TargetFramework.StandardAndCSharp, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (172)
Semantics\DelegateTypeTests.cs (56)
1622
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
1673
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1723
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1773
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1823
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1873
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1923
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
1974
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2019
var comp = CreateCompilation(new[] { source, s_utils }, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2075
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2132
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2197
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2257
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2310
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2349
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2392
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2439
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2486
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2534
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2582
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2631
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2680
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2721
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
2773
comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
3072
var comp = CreateCompilation(source, parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview);
3105
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3134
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3556
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular13
);
3655
comp = CreateCompilation(source, parseOptions: TestOptions.
Regular13
);
6819
CreateCompilation([source1, source2], parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
6834
CompileAndVerify([source1, source3], parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6875
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6916
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
6957
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7007
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7054
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7101
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
7145
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
7181
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
7217
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
7266
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
7309
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13435
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13476
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13509
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
13539
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13606
CompileAndVerify(source3, [comp2Ref, comp1b.EmitToImageReference()], parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13656
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13723
CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13774
CompileAndVerify([source1, source2], parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
13789
CompileAndVerify([source1, source3], parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13855
CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
13870
CompileAndVerify(source4, [comp2Ref, comp1bRef], parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13911
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
13954
CompileAndVerify(source3, [comp2Ref, comp1aRef], parseOptions: TestOptions.
Regular13
, symbolValidator: validateSymbols, expectedOutput: expectedOutput).VerifyDiagnostics();
13983
CompileAndVerify(source3, [comp2Ref, comp1bRef], parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
Semantics\DynamicTests.cs (11)
4948
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
5072
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
5195
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
5319
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
5451
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
5636
var parseOptions = version switch { 12 => TestOptions.Regular12, 13 => TestOptions.
Regular13
, _ => TestOptions.RegularPreview };
5668
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
5802
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
5994
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
6117
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
6446
var parseOptions = testPreview ? TestOptions.RegularPreview : TestOptions.
Regular13
;
Semantics\LocalFunctionTests.cs (1)
2441
CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.
Regular13
.WithFeature("run-nullable-analysis", "never")).VerifyDiagnostics(expectedDiagnostics);
Semantics\NameOfTests.cs (4)
2391
""", parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
2419
""", parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
2435
""", parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
2451
""", parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
Semantics\NativeIntegerTests.cs (1)
4401
CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
Semantics\RefLocalsAndReturnsTests.cs (12)
1307
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
1343
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, expectedOutput: expectedOutput).VerifyDiagnostics();
3199
CreateCompilation(code, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
3234
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
3268
CreateCompilation(code, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
3299
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics();
3330
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
3360
CreateCompilation(code, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
3393
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
3428
CreateCompilation(code, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
3461
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net70, verify: Verification.FailsPEVerify).VerifyDiagnostics();
3496
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, targetFramework: TargetFramework.Net70).VerifyEmitDiagnostics(expectedDiagnostics);
Semantics\SemanticErrorTests.cs (1)
15361
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
Semantics\SpanStackSafetyTests.cs (5)
1006
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
1061
var comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.
Regular13
);
1147
CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics(expectedDiagnostics);
1208
var comp = CreateCompilationWithMscorlibAndSpan(text, TestOptions.ReleaseExe, TestOptions.
Regular13
);
1834
var comp = CreateCompilationWithSpan(source, parseOptions: TestOptions.
Regular13
);
Semantics\TopLevelStatementsTests.cs (1)
1130
comp = CreateCompilation(text, options: TestOptions.DebugExe, parseOptions: TestOptions.
Regular13
);
Semantics\UnsafeTests.cs (80)
283
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
306
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
329
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
353
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
397
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
445
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
492
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
619
CompileAndVerify(code, expectedOutput: expectedOutput, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
644
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics();
676
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
754
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
812
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
878
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
905
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
936
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
964
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
984
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
1015
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
1043
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
1075
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
1107
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
1138
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
1158
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1180
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1203
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1228
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1246
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1268
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1293
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1389
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1415
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1438
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1463
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1486
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1511
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1529
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1551
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1576
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1634
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1658
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1684
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1708
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1737
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1756
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1779
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1805
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1877
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1905
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1929
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
1955
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
1979
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
2008
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2027
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
2050
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics();
2076
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2148
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2176
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyDiagnostics(expectedDiagnostics);
2197
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2217
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2241
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2264
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2283
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2306
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2329
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2387
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2402
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2424
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2442
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics();
2464
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2489
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2517
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2552
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2577
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseExe).VerifyDiagnostics(expectedDiagnostics);
2596
CreateCompilation(code, parseOptions: TestOptions.
Regular13
, options: TestOptions.UnsafeReleaseDll).VerifyEmitDiagnostics();
3213
CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
3231
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
3265
CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
3275
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
10456
CreateCompilation(text, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
10829
CreateCompilation(text, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(expectedDiagnostics);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\DefaultInterfaceImplementationTests.cs (4)
3360
parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview,
3449
parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview,
3515
parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview,
3600
parseOptions: useCSharp13 ? TestOptions.
Regular13
: TestOptions.RegularPreview,
Symbols\PartialPropertiesTests.cs (1)
4852
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular13
);
Symbols\SymbolErrorTests.cs (1)
8132
CreateCompilation(text, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
LexicalAndXml\LexicalErrorTests.cs (3)
325
ParserErrorMessageTests.ParseAndValidate(test, TestOptions.
Regular13
);
341
ParserErrorMessageTests.ParseAndValidate(test, TestOptions.
Regular13
);
357
ParserErrorMessageTests.ParseAndValidate(test, TestOptions.
Regular13
);
LexicalAndXml\LexicalTests.cs (2)
1171
var token = LexToken(text, TestOptions.
Regular13
);
1350
var token = LexToken(text, TestOptions.
Regular13
);
Syntax\FieldAndValueKeywordTests.cs (3)
84
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular13
);
879
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular13
);
902
var comp = CreateCompilation(source, parseOptions: TestOptions.
Regular13
);