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)
60
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
111
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
157
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
, options: TestOptions.ReleaseExe);
193
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
306
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
362
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
419
parseOptions: TestOptions.
Regular13
);
450
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
481
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
511
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
541
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
572
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
600
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
653
parseOptions: TestOptions.
Regular13
);
683
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
713
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
860
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
942
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
1024
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
1266
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1297
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1328
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1365
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1399
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1429
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
1459
CreateCompilation(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3195
CompileAndVerify(source, parseOptions: TestOptions.
Regular13
, verify: Verification.FailsILVerify)
3485
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3545
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3605
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3668
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3743
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3787
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
3909
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4015
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4623
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
4732
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4773
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4813
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4939
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4975
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5029
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5079
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5171
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
5461
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5497
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5656
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5687
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5912
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
6002
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6035
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6068
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6101
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6134
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6175
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6272
verifyWithMissing(missingRosHelper, TestOptions.
Regular13
, expectedDiagnostics);
6273
verifyWithMissing(missingSpanHelper, TestOptions.
Regular13
, expectedDiagnostics);
6345
verifyWithMissing(missingRosHelper, TestOptions.
Regular13
, expectedDiagnostics);
6346
verifyWithMissing(missingSpanHelper, TestOptions.
Regular13
, expectedDiagnostics);
6380
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6421
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6462
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6504
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6545
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6607
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6675
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
6957
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
7180
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
7302
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7368
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
7418
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
7492
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7584
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7780
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7807
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7891
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7941
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7969
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
7999
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
8026
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8082
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8130
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8162
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8219
CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8243
comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions: TestOptions.
Regular13
);
8272
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8310
CreateCompilationWithSpanAndMemoryExtensions([source1, source2], parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8336
comp = CreateCompilationWithSpanAndMemoryExtensions([source1, source3], parseOptions: TestOptions.
Regular13
);
8363
CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
8394
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
8435
var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.
Regular13
);
8502
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)
46
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
79
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
161
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
193
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
278
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
316
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
408
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
440
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
526
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
564
CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
810
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
844
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
1352
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
1405
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
1928
CreateCompilation(src7, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
1981
CreateCompilation(src8, references: [comp1Ref], targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
4387
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
4396
comp = CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4403
comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
4438
CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
4446
CreateCompilation(src, targetFramework: TargetFramework.Mscorlib461Extended, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics(
5467
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
5600
CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
).VerifyDiagnostics();
5864
CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
7278
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
7338
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
7362
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
7394
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8690
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8746
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8766
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8796
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
8835
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
11760
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
11827
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
11845
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
11890
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13717
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13794
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13818
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13870
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
13927
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16143
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16199
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16219
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16250
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
16293
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
17399
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
17488
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
17514
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
17567
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
18907
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
18958
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
18978
comp3 = CreateCompilation(src3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
19008
comp = CreateCompilation(src, targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
19047
comp2 = CreateCompilation(src2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
20041
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20054
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20086
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20096
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20298
CreateCompilation([src1, src2], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20311
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20343
CreateCompilation([src1, src3], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
20353
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.
Regular13
).VerifyEmitDiagnostics();
28752
comp2 = CreateCompilation(text2, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
28770
comp3 = CreateCompilation(text3, references: [comp1.ToMetadataReference()], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, parseOptions: TestOptions.
Regular13
);
28836
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
);