1148 references to VerifyEmitDiagnostics
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (105)
CodeGen\CodeGenAsyncIteratorTests.cs (13)
119
comp.
VerifyEmitDiagnostics
(expected);
136
comp.
VerifyEmitDiagnostics
(expected);
716
comp.
VerifyEmitDiagnostics
();
875
comp.
VerifyEmitDiagnostics
();
2216
comp.
VerifyEmitDiagnostics
(expected);
8522
comp.
VerifyEmitDiagnostics
();
8557
comp.
VerifyEmitDiagnostics
();
8598
comp.
VerifyEmitDiagnostics
();
8636
comp2.
VerifyEmitDiagnostics
(); // Indirectly calling IsMetadataVirtual on S.GetAsyncEnumerator (a read which causes the lock to be set)
8637
comp1.
VerifyEmitDiagnostics
(); // Would call EnsureMetadataVirtual on S.GetAsyncEnumerator and would therefore assert if S was not already ForceCompleted
8679
comp2.
VerifyEmitDiagnostics
(); // Indirectly calling IsMetadataVirtual on S.DisposeAsync (a read which causes the lock to be set)
8680
comp1.
VerifyEmitDiagnostics
(); // Would call EnsureMetadataVirtual on S.DisposeAsync and would therefore assert if S was not already ForceCompleted
10532
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (8)
332
compilation.
VerifyEmitDiagnostics
();
370
compilation.
VerifyEmitDiagnostics
();
408
compilation.
VerifyEmitDiagnostics
();
448
compilation.
VerifyEmitDiagnostics
();
486
compilation.
VerifyEmitDiagnostics
();
1402
compilation.
VerifyEmitDiagnostics
();
2008
compilation.
VerifyEmitDiagnostics
();
2099
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenAsyncTests.cs (4)
3836
comp.
VerifyEmitDiagnostics
(
4110
comp2.
VerifyEmitDiagnostics
();
5934
comp.
VerifyEmitDiagnostics
();
6058
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenAwaitForeachTests.cs (1)
4942
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenAwaitUsingTests.cs (1)
881
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenCapturing.cs (1)
461
CreateCompilation(methodsText.ToString()).
VerifyEmitDiagnostics
();
CodeGen\CodeGenDeconstructTests.cs (13)
1461
comp.
VerifyEmitDiagnostics
();
1504
comp.
VerifyEmitDiagnostics
();
1557
comp.
VerifyEmitDiagnostics
();
8778
comp.
VerifyEmitDiagnostics
();
8783
comp.
VerifyEmitDiagnostics
();
8803
comp.
VerifyEmitDiagnostics
();
8808
comp.
VerifyEmitDiagnostics
();
8829
comp.
VerifyEmitDiagnostics
();
8834
comp.
VerifyEmitDiagnostics
();
8864
comp.
VerifyEmitDiagnostics
();
8869
comp.
VerifyEmitDiagnostics
();
8890
comp.
VerifyEmitDiagnostics
();
8895
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenDynamicTests.cs (1)
271
CreateCompilationWithMscorlib40(source, new[] { SystemCoreRef, csrtRef }).
VerifyEmitDiagnostics
();
CodeGen\CodeGenForEachTests.cs (1)
5817
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenIterators.cs (1)
4182
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenLocalFunctionTests.cs (1)
1708
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenOperators.cs (2)
6084
comp.
VerifyEmitDiagnostics
();
6140
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenRefReturnTests.cs (2)
3415
CreateCompilationWithMscorlib461AndCSharp(source).
VerifyEmitDiagnostics
(
3506
CreateCompilationWithMscorlib461AndCSharp(source).
VerifyEmitDiagnostics
(
CodeGen\CodeGenScriptTests.cs (20)
263
s11.
VerifyEmitDiagnostics
();
264
s12.
VerifyEmitDiagnostics
();
285
c0.
VerifyEmitDiagnostics
();
286
c1.
VerifyEmitDiagnostics
();
307
c0.
VerifyEmitDiagnostics
();
308
c1.
VerifyEmitDiagnostics
();
329
c0.
VerifyEmitDiagnostics
();
330
c1.
VerifyEmitDiagnostics
();
351
c0.
VerifyEmitDiagnostics
();
352
c1.
VerifyEmitDiagnostics
();
369
c0.
VerifyEmitDiagnostics
();
390
c0.
VerifyEmitDiagnostics
();
391
c1.
VerifyEmitDiagnostics
();
415
c0.
VerifyEmitDiagnostics
();
416
c1.
VerifyEmitDiagnostics
();
436
c0.
VerifyEmitDiagnostics
();
458
c0.
VerifyEmitDiagnostics
();
471
c0.
VerifyEmitDiagnostics
();
480
s0.
VerifyEmitDiagnostics
();
481
s1.
VerifyEmitDiagnostics
();
CodeGen\CodeGenTests.cs (3)
39
comp.
VerifyEmitDiagnostics
();
14843
comp.
VerifyEmitDiagnostics
();
14869
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenTupleTest.cs (15)
268
comp.
VerifyEmitDiagnostics
();
4107
comp.
VerifyEmitDiagnostics
();
7492
comp.
VerifyEmitDiagnostics
();
7525
comp.
VerifyEmitDiagnostics
();
7562
comp.
VerifyEmitDiagnostics
();
13296
comp.
VerifyEmitDiagnostics
();
13403
comp.
VerifyEmitDiagnostics
();
21298
compMatching.
VerifyEmitDiagnostics
();
22781
comp.
VerifyEmitDiagnostics
();
22821
comp.
VerifyEmitDiagnostics
();
26434
comp.
VerifyEmitDiagnostics
();
26498
comp.
VerifyEmitDiagnostics
();
26565
comp.
VerifyEmitDiagnostics
();
26573
comp2.
VerifyEmitDiagnostics
();
26620
comp.
VerifyEmitDiagnostics
();
CodeGen\CodeGenUsingDeclarationTests.cs (4)
1377
comp.
VerifyEmitDiagnostics
();
1844
comp.
VerifyEmitDiagnostics
();
1851
comp.
VerifyEmitDiagnostics
();
1858
comp.
VerifyEmitDiagnostics
();
CodeGen\IndexerTests.cs (2)
1219
comp1.
VerifyEmitDiagnostics
();
1242
comp2.
VerifyEmitDiagnostics
();
Emit\CompilationEmitTests.cs (4)
1022
pia.
VerifyEmitDiagnostics
();
1100
pia.
VerifyEmitDiagnostics
();
1974
comp.
VerifyEmitDiagnostics
();
1986
comp.
VerifyEmitDiagnostics
();
Emit\CovariantReturnTests.cs (4)
497
assemblyName: "ref0").
VerifyEmitDiagnostics
().EmitToImageReference();
507
assemblyName: "ref1").
VerifyEmitDiagnostics
().EmitToImageReference();
518
assemblyName: "ref1").
VerifyEmitDiagnostics
().EmitToImageReference();
529
assemblyName: "ref2").
VerifyEmitDiagnostics
().EmitToImageReference();
Emit\DesktopStrongNameProviderTests.cs (2)
100
comp.
VerifyEmitDiagnostics
();
117
comp.
VerifyEmitDiagnostics
();
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (2)
2962
c.
VerifyEmitDiagnostics
();
2998
c.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (10)
CodeGen\CodeGenLengthBasedSwitchTests.cs (3)
1829
comp.
VerifyEmitDiagnostics
();
1981
comp.
VerifyEmitDiagnostics
();
2087
comp.
VerifyEmitDiagnostics
();
Emit\NumericIntPtrTests.cs (6)
1914
comp.
VerifyEmitDiagnostics
();
1966
comp.
VerifyEmitDiagnostics
();
9329
comp.
VerifyEmitDiagnostics
();
9363
comp.
VerifyEmitDiagnostics
();
11753
comp.
VerifyEmitDiagnostics
();
11814
comp.
VerifyEmitDiagnostics
();
PDB\PDBUsingTests.cs (1)
798
compilation.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (447)
Attributes\AttributeTests.cs (1)
10989
comp.
VerifyEmitDiagnostics
();
Attributes\AttributeTests_Assembly.cs (12)
185
other.
VerifyEmitDiagnostics
();
217
other.
VerifyEmitDiagnostics
();
420
compilation.
VerifyEmitDiagnostics
();
433
compilation.
VerifyEmitDiagnostics
();
446
compilation.
VerifyEmitDiagnostics
();
449
compilation.
VerifyEmitDiagnostics
();
452
compilation.
VerifyEmitDiagnostics
();
468
compilation.
VerifyEmitDiagnostics
();
503
compilation.
VerifyEmitDiagnostics
();
571
other.
VerifyEmitDiagnostics
();
838
compilation.
VerifyEmitDiagnostics
();
1751
appCompilation.
VerifyEmitDiagnostics
();
Attributes\AttributeTests_Embedded.cs (1)
47
CreateCompilation(code, parseOptions: TestOptions.Regular.WithNoRefSafetyRulesAttribute()).
VerifyEmitDiagnostics
();
Attributes\AttributeTests_Nullable.cs (6)
356
comp.
VerifyEmitDiagnostics
();
380
comp.
VerifyEmitDiagnostics
();
2452
comp.
VerifyEmitDiagnostics
();
2481
comp.
VerifyEmitDiagnostics
();
4416
comp.
VerifyEmitDiagnostics
();
4651
comp.
VerifyEmitDiagnostics
();
Attributes\AttributeTests_NullableContext.cs (2)
88
comp.
VerifyEmitDiagnostics
();
92
comp.
VerifyEmitDiagnostics
();
Attributes\AttributeTests_NullablePublicOnly.cs (1)
87
comp.
VerifyEmitDiagnostics
();
Attributes\AttributeTests_RefReadOnly.cs (8)
1359
").
VerifyEmitDiagnostics
();
1373
compilation.
VerifyEmitDiagnostics
();
1396
").
VerifyEmitDiagnostics
();
1415
compilation.
VerifyEmitDiagnostics
();
1444
compilation.
VerifyEmitDiagnostics
();
1471
compilation.
VerifyEmitDiagnostics
();
1493
").
VerifyEmitDiagnostics
();
1510
compilation.
VerifyEmitDiagnostics
();
Attributes\AttributeTests_RefSafetyRules.cs (1)
71
comp.
VerifyEmitDiagnostics
();
Attributes\AttributeTests_WellKnownAttributes.cs (1)
13619
CreateCompilation(code).VerifyDiagnostics().
VerifyEmitDiagnostics
();
Attributes\InternalsVisibleToAndStrongNameTests.cs (5)
196
compilation.
VerifyEmitDiagnostics
();
211
compilation.
VerifyEmitDiagnostics
();
216
compilation.
VerifyEmitDiagnostics
();
1456
comp.
VerifyEmitDiagnostics
();
2949
c2.
VerifyEmitDiagnostics
();
FieldKeywordTests.cs (15)
5602
comp.
VerifyEmitDiagnostics
();
5734
comp.
VerifyEmitDiagnostics
();
5812
comp.
VerifyEmitDiagnostics
();
5833
comp.
VerifyEmitDiagnostics
();
5894
comp.
VerifyEmitDiagnostics
();
5915
comp.
VerifyEmitDiagnostics
();
5975
comp.
VerifyEmitDiagnostics
();
5995
comp.
VerifyEmitDiagnostics
();
6016
comp.
VerifyEmitDiagnostics
();
6037
comp.
VerifyEmitDiagnostics
();
7082
comp.
VerifyEmitDiagnostics
();
8316
comp.
VerifyEmitDiagnostics
();
8558
comp.
VerifyEmitDiagnostics
();
8734
comp.
VerifyEmitDiagnostics
();
10738
comp.
VerifyEmitDiagnostics
();
FlowAnalysis\FlowDiagnosticTests.cs (1)
2134
CreateCompilationWithMscorlib461(program).
VerifyEmitDiagnostics
();
FlowAnalysis\RegionAnalysisTests.cs (4)
14140
comp.
VerifyEmitDiagnostics
();
14164
comp.
VerifyEmitDiagnostics
();
14202
comp.
VerifyEmitDiagnostics
();
14247
comp.
VerifyEmitDiagnostics
();
RefReadonlyParameterTests.cs (2)
6904
CreateCompilation(source).
VerifyEmitDiagnostics
();
6920
CreateCompilation(source).
VerifyEmitDiagnostics
();
RefStructInterfacesTests.cs (99)
2722
comp.
VerifyEmitDiagnostics
();
2742
comp.
VerifyEmitDiagnostics
();
2758
comp.
VerifyEmitDiagnostics
();
2797
comp.
VerifyEmitDiagnostics
();
2817
comp.
VerifyEmitDiagnostics
();
2833
comp.
VerifyEmitDiagnostics
();
2851
comp.
VerifyEmitDiagnostics
();
2867
comp.
VerifyEmitDiagnostics
();
2904
comp.
VerifyEmitDiagnostics
();
2922
comp.
VerifyEmitDiagnostics
();
3741
comp.
VerifyEmitDiagnostics
();
3884
comp.
VerifyEmitDiagnostics
();
3933
comp.
VerifyEmitDiagnostics
();
4045
comp.
VerifyEmitDiagnostics
();
4087
comp.
VerifyEmitDiagnostics
();
4179
comp.
VerifyEmitDiagnostics
();
4233
comp.
VerifyEmitDiagnostics
();
4355
comp.
VerifyEmitDiagnostics
();
5864
CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
7276
comp2.
VerifyEmitDiagnostics
();
7279
comp2.
VerifyEmitDiagnostics
();
7282
comp2.
VerifyEmitDiagnostics
();
7339
comp2.
VerifyEmitDiagnostics
();
7342
comp2.
VerifyEmitDiagnostics
();
7360
comp3.
VerifyEmitDiagnostics
();
7363
comp3.
VerifyEmitDiagnostics
();
7366
comp3.
VerifyEmitDiagnostics
();
7395
comp.
VerifyEmitDiagnostics
();
7398
comp.
VerifyEmitDiagnostics
();
8688
comp2.
VerifyEmitDiagnostics
();
8691
comp2.
VerifyEmitDiagnostics
();
8694
comp2.
VerifyEmitDiagnostics
();
8747
comp2.
VerifyEmitDiagnostics
();
8750
comp2.
VerifyEmitDiagnostics
();
8764
comp3.
VerifyEmitDiagnostics
();
8767
comp3.
VerifyEmitDiagnostics
();
8770
comp3.
VerifyEmitDiagnostics
();
8797
comp.
VerifyEmitDiagnostics
();
8800
comp.
VerifyEmitDiagnostics
();
8836
comp2.
VerifyEmitDiagnostics
();
8839
comp2.
VerifyEmitDiagnostics
();
11758
comp2.
VerifyEmitDiagnostics
();
11761
comp2.
VerifyEmitDiagnostics
();
11764
comp2.
VerifyEmitDiagnostics
();
11828
comp2.
VerifyEmitDiagnostics
();
11831
comp2.
VerifyEmitDiagnostics
();
11843
comp3.
VerifyEmitDiagnostics
();
11846
comp3.
VerifyEmitDiagnostics
();
11849
comp3.
VerifyEmitDiagnostics
();
11891
comp.
VerifyEmitDiagnostics
();
11894
comp.
VerifyEmitDiagnostics
();
13718
comp2.
VerifyEmitDiagnostics
();
13721
comp2.
VerifyEmitDiagnostics
();
13795
comp2.
VerifyEmitDiagnostics
();
13798
comp2.
VerifyEmitDiagnostics
();
13816
comp3.
VerifyEmitDiagnostics
();
13819
comp3.
VerifyEmitDiagnostics
();
13822
comp3.
VerifyEmitDiagnostics
();
13871
comp.
VerifyEmitDiagnostics
();
13874
comp.
VerifyEmitDiagnostics
();
13928
comp.
VerifyEmitDiagnostics
();
13931
comp.
VerifyEmitDiagnostics
();
16141
comp2.
VerifyEmitDiagnostics
();
16144
comp2.
VerifyEmitDiagnostics
();
16147
comp2.
VerifyEmitDiagnostics
();
16200
comp2.
VerifyEmitDiagnostics
();
16203
comp2.
VerifyEmitDiagnostics
();
16217
comp3.
VerifyEmitDiagnostics
();
16220
comp3.
VerifyEmitDiagnostics
();
16223
comp3.
VerifyEmitDiagnostics
();
16251
comp.
VerifyEmitDiagnostics
();
16254
comp.
VerifyEmitDiagnostics
();
16294
comp2.
VerifyEmitDiagnostics
();
16297
comp2.
VerifyEmitDiagnostics
();
17512
comp3.
VerifyEmitDiagnostics
();
17515
comp3.
VerifyEmitDiagnostics
();
17518
comp3.
VerifyEmitDiagnostics
();
18905
comp2.
VerifyEmitDiagnostics
();
18908
comp2.
VerifyEmitDiagnostics
();
18911
comp2.
VerifyEmitDiagnostics
();
18959
comp2.
VerifyEmitDiagnostics
();
18962
comp2.
VerifyEmitDiagnostics
();
18976
comp3.
VerifyEmitDiagnostics
();
18979
comp3.
VerifyEmitDiagnostics
();
18982
comp3.
VerifyEmitDiagnostics
();
19009
comp.
VerifyEmitDiagnostics
();
19012
comp.
VerifyEmitDiagnostics
();
19048
comp2.
VerifyEmitDiagnostics
();
19051
comp2.
VerifyEmitDiagnostics
();
20054
CreateCompilation(src2, references: [comp1Ref], 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
();
20097
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
20113
CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).
VerifyEmitDiagnostics
();
20311
CreateCompilation(src2, references: [comp1Ref], 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
();
20354
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
20370
CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).
VerifyEmitDiagnostics
();
21384
comp.
VerifyEmitDiagnostics
();
22236
comp.
VerifyEmitDiagnostics
();
RefUnsafeInIteratorAndAsyncTests.cs (10)
41
CreateCompilation(source, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
42
CreateCompilation(source).
VerifyEmitDiagnostics
();
69
CreateCompilation(source, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
70
CreateCompilation(source).
VerifyEmitDiagnostics
();
97
CreateCompilation(source, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
98
CreateCompilation(source).
VerifyEmitDiagnostics
();
127
CreateCompilation(source, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
128
CreateCompilation(source).
VerifyEmitDiagnostics
();
180
CreateCompilation(source, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
181
CreateCompilation(source).
VerifyEmitDiagnostics
();
Semantics\CollectionExpressionTests.cs (67)
169
comp.
VerifyEmitDiagnostics
();
693
comp.
VerifyEmitDiagnostics
();
715
comp.
VerifyEmitDiagnostics
();
4047
comp.
VerifyEmitDiagnostics
();
4766
comp.
VerifyEmitDiagnostics
();
5664
comp.
VerifyEmitDiagnostics
();
9051
comp.
VerifyEmitDiagnostics
();
12206
comp.
VerifyEmitDiagnostics
();
14111
comp.
VerifyEmitDiagnostics
();
15389
comp.
VerifyEmitDiagnostics
();
15513
comp.
VerifyEmitDiagnostics
();
19270
comp.
VerifyEmitDiagnostics
();
19419
comp.
VerifyEmitDiagnostics
();
19521
comp.
VerifyEmitDiagnostics
();
19605
comp.
VerifyEmitDiagnostics
();
20905
comp.
VerifyEmitDiagnostics
();
22561
comp.
VerifyEmitDiagnostics
();
22698
comp.
VerifyEmitDiagnostics
();
25650
comp.
VerifyEmitDiagnostics
();
25989
comp.
VerifyEmitDiagnostics
();
26109
comp.
VerifyEmitDiagnostics
();
26235
comp.
VerifyEmitDiagnostics
();
26302
comp.
VerifyEmitDiagnostics
();
26446
comp.
VerifyEmitDiagnostics
();
26515
comp.
VerifyEmitDiagnostics
();
26573
comp.
VerifyEmitDiagnostics
();
26643
comp.
VerifyEmitDiagnostics
();
26721
comp.
VerifyEmitDiagnostics
();
26783
comp.
VerifyEmitDiagnostics
();
26818
comp.
VerifyEmitDiagnostics
();
26890
comp.
VerifyEmitDiagnostics
();
27000
comp.
VerifyEmitDiagnostics
();
27029
comp.
VerifyEmitDiagnostics
();
27052
comp.
VerifyEmitDiagnostics
();
28167
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28197
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28220
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28243
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28289
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28313
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28336
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28907
var comp = CreateCompilation(source).
VerifyEmitDiagnostics
();
29167
CreateCompilation(source).
VerifyEmitDiagnostics
();
29336
comp.
VerifyEmitDiagnostics
();
29376
comp.
VerifyEmitDiagnostics
();
29461
comp.
VerifyEmitDiagnostics
();
29485
comp.
VerifyEmitDiagnostics
();
29509
comp.
VerifyEmitDiagnostics
();
29532
comp.
VerifyEmitDiagnostics
();
29967
var comp = CreateCompilation(source).
VerifyEmitDiagnostics
();
30030
var comp = CreateCompilation(source).
VerifyEmitDiagnostics
();
31277
CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31347
CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31477
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31525
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31681
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31966
CreateCompilation(src).
VerifyEmitDiagnostics
();
32011
CreateCompilation(source).
VerifyEmitDiagnostics
();
32041
CreateCompilation(source).
VerifyEmitDiagnostics
();
32091
CreateCompilation(source).
VerifyEmitDiagnostics
();
32122
CreateCompilation(source).
VerifyEmitDiagnostics
();
32166
CreateCompilation(source).
VerifyEmitDiagnostics
();
32213
CreateCompilation(source).
VerifyEmitDiagnostics
();
32331
var comp = CreateCompilation(src).
VerifyEmitDiagnostics
();
32478
var comp = CreateCompilation(src).
VerifyEmitDiagnostics
();
33344
CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
33430
comp.
VerifyEmitDiagnostics
();
Semantics\InlineArrayTests.cs (12)
1765
comp.
VerifyEmitDiagnostics
();
1788
comp.
VerifyEmitDiagnostics
();
14066
comp.
VerifyEmitDiagnostics
();
14096
comp.
VerifyEmitDiagnostics
();
14165
comp.
VerifyEmitDiagnostics
();
14245
comp.
VerifyEmitDiagnostics
();
14274
comp.
VerifyEmitDiagnostics
();
14346
comp.
VerifyEmitDiagnostics
();
14425
comp.
VerifyEmitDiagnostics
();
14449
comp.
VerifyEmitDiagnostics
();
14542
comp.
VerifyEmitDiagnostics
();
17276
compilation.
VerifyEmitDiagnostics
();
Semantics\ParamsCollectionTests.cs (30)
2032
comp.
VerifyEmitDiagnostics
();
2072
comp.
VerifyEmitDiagnostics
();
2113
comp.
VerifyEmitDiagnostics
();
2894
CreateCompilationWithIL(src, il).
VerifyEmitDiagnostics
();
2919
CreateCompilation(src).
VerifyEmitDiagnostics
();
4745
comp2.
VerifyEmitDiagnostics
();
6363
comp.
VerifyEmitDiagnostics
();
6367
comp.
VerifyEmitDiagnostics
();
6371
comp.
VerifyEmitDiagnostics
();
6973
comp.
VerifyEmitDiagnostics
();
7279
comp.
VerifyEmitDiagnostics
();
7283
comp.
VerifyEmitDiagnostics
();
7287
comp.
VerifyEmitDiagnostics
();
7395
comp.
VerifyEmitDiagnostics
();
7399
comp.
VerifyEmitDiagnostics
();
7403
comp.
VerifyEmitDiagnostics
();
7891
comp.
VerifyEmitDiagnostics
();
7994
comp.
VerifyEmitDiagnostics
();
7998
comp.
VerifyEmitDiagnostics
();
8002
comp.
VerifyEmitDiagnostics
();
8223
comp.
VerifyEmitDiagnostics
();
12771
comp3.
VerifyEmitDiagnostics
(moduleDiagnostic);
13520
comp2.
VerifyEmitDiagnostics
();
13540
comp3.
VerifyEmitDiagnostics
();
13621
comp2.
VerifyEmitDiagnostics
();
13641
comp3.
VerifyEmitDiagnostics
();
14761
var comp = CreateCompilation(source).
VerifyEmitDiagnostics
();
14840
CreateCompilation(source).
VerifyEmitDiagnostics
();
14913
CreateCompilation(source).
VerifyEmitDiagnostics
();
15250
comp.
VerifyEmitDiagnostics
();
Semantics\PatternMatchingTests.cs (38)
3716
compilation.
VerifyEmitDiagnostics
();
3738
compilation.
VerifyEmitDiagnostics
();
3775
compilation.
VerifyEmitDiagnostics
();
3797
compilation.
VerifyEmitDiagnostics
();
7392
.
VerifyEmitDiagnostics
();
7441
.
VerifyEmitDiagnostics
();
7506
.
VerifyEmitDiagnostics
();
7585
.
VerifyEmitDiagnostics
();
7671
compilation.
VerifyEmitDiagnostics
();
7817
compilation.
VerifyEmitDiagnostics
();
7988
compilation.
VerifyEmitDiagnostics
();
8121
.
VerifyEmitDiagnostics
();
8264
.
VerifyEmitDiagnostics
();
8344
.
VerifyEmitDiagnostics
();
8445
.
VerifyEmitDiagnostics
();
8613
comp.
VerifyEmitDiagnostics
();
8655
comp.
VerifyEmitDiagnostics
();
8983
.
VerifyEmitDiagnostics
();
9034
.
VerifyEmitDiagnostics
();
9100
.
VerifyEmitDiagnostics
();
9181
.
VerifyEmitDiagnostics
();
9269
compilation.
VerifyEmitDiagnostics
();
9415
compilation.
VerifyEmitDiagnostics
();
9587
compilation.
VerifyEmitDiagnostics
();
9720
.
VerifyEmitDiagnostics
();
9864
.
VerifyEmitDiagnostics
();
9945
.
VerifyEmitDiagnostics
();
10045
.
VerifyEmitDiagnostics
();
10216
comp.
VerifyEmitDiagnostics
();
10257
comp.
VerifyEmitDiagnostics
();
10735
comp.
VerifyEmitDiagnostics
();
10783
comp.
VerifyEmitDiagnostics
();
11182
comp.
VerifyEmitDiagnostics
();
11344
comp.
VerifyEmitDiagnostics
();
11362
comp.
VerifyEmitDiagnostics
();
11386
comp.
VerifyEmitDiagnostics
();
11407
comp.
VerifyEmitDiagnostics
();
11464
comp.
VerifyEmitDiagnostics
();
Semantics\PatternMatchingTests_ListPatterns.cs (34)
64
compilation.
VerifyEmitDiagnostics
();
531
compilation.
VerifyEmitDiagnostics
();
719
compilation.
VerifyEmitDiagnostics
();
903
compilation.
VerifyEmitDiagnostics
();
1613
compilation.
VerifyEmitDiagnostics
();
2276
compilation.
VerifyEmitDiagnostics
();
2310
compilation.
VerifyEmitDiagnostics
();
2335
compilation.
VerifyEmitDiagnostics
();
2399
compilation.
VerifyEmitDiagnostics
();
2439
compilation.
VerifyEmitDiagnostics
();
2511
compilation.
VerifyEmitDiagnostics
();
2599
compilation.
VerifyEmitDiagnostics
();
2919
compilation.
VerifyEmitDiagnostics
();
2950
compilation.
VerifyEmitDiagnostics
();
4401
compilation.
VerifyEmitDiagnostics
();
5537
compilation.
VerifyEmitDiagnostics
();
5625
compilation.
VerifyEmitDiagnostics
();
6077
comp.
VerifyEmitDiagnostics
();
6098
comp.
VerifyEmitDiagnostics
();
6392
comp.
VerifyEmitDiagnostics
();
6445
comp.
VerifyEmitDiagnostics
();
6567
comp.
VerifyEmitDiagnostics
();
7383
comp.
VerifyEmitDiagnostics
();
7413
comp.
VerifyEmitDiagnostics
();
8173
comp.
VerifyEmitDiagnostics
();
8219
comp.
VerifyEmitDiagnostics
();
8233
comp.
VerifyEmitDiagnostics
();
8248
comp.
VerifyEmitDiagnostics
();
8269
comp.
VerifyEmitDiagnostics
();
8290
comp.
VerifyEmitDiagnostics
();
8311
comp.
VerifyEmitDiagnostics
();
8325
comp.
VerifyEmitDiagnostics
();
8346
comp.
VerifyEmitDiagnostics
();
8438
comp.
VerifyEmitDiagnostics
();
Semantics\PatternMatchingTests3.cs (1)
2974
compilation.
VerifyEmitDiagnostics
(
Semantics\PatternMatchingTests5.cs (1)
404
compilation.
VerifyEmitDiagnostics
();
Semantics\PatternSwitchTests.cs (2)
3319
compilation.
VerifyEmitDiagnostics
(
3522
compilation.
VerifyEmitDiagnostics
(
Semantics\PrimaryConstructorTests.cs (36)
126
comp.
VerifyEmitDiagnostics
();
359
comp.
VerifyEmitDiagnostics
();
475
comp.
VerifyEmitDiagnostics
();
506
comp.
VerifyEmitDiagnostics
();
510
comp2.
VerifyEmitDiagnostics
();
521
comp.
VerifyEmitDiagnostics
();
551
comp.
VerifyEmitDiagnostics
();
958
comp.
VerifyEmitDiagnostics
();
12521
comp.
VerifyEmitDiagnostics
();
12544
comp.
VerifyEmitDiagnostics
();
12600
comp.
VerifyEmitDiagnostics
();
12668
comp.
VerifyEmitDiagnostics
();
12720
comp.
VerifyEmitDiagnostics
();
12743
comp.
VerifyEmitDiagnostics
();
12833
comp.
VerifyEmitDiagnostics
();
13040
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
13616
CreateCompilation(text).
VerifyEmitDiagnostics
();
13777
CreateCompilation(text).
VerifyEmitDiagnostics
();
13862
CreateCompilation(text).
VerifyEmitDiagnostics
();
13876
CreateCompilation(text).
VerifyEmitDiagnostics
();
14549
comp.
VerifyEmitDiagnostics
();
14563
comp.
VerifyEmitDiagnostics
();
14593
comp.
VerifyEmitDiagnostics
();
14774
comp.
VerifyEmitDiagnostics
();
14838
comp.
VerifyEmitDiagnostics
();
15196
comp.
VerifyEmitDiagnostics
();
15270
comp.
VerifyEmitDiagnostics
();
16180
comp.
VerifyEmitDiagnostics
();
16198
comp.
VerifyEmitDiagnostics
();
16341
comp.
VerifyEmitDiagnostics
();
19764
comp.
VerifyEmitDiagnostics
();
20123
comp.
VerifyEmitDiagnostics
();
20925
comp.
VerifyEmitDiagnostics
();
20947
comp.
VerifyEmitDiagnostics
();
20998
comp.
VerifyEmitDiagnostics
();
22272
comp.
VerifyEmitDiagnostics
();
Semantics\RecordTests.cs (57)
260
comp.
VerifyEmitDiagnostics
();
1715
comp.
VerifyEmitDiagnostics
();
1731
comp.
VerifyEmitDiagnostics
();
4917
comp.
VerifyEmitDiagnostics
();
4992
comp.
VerifyEmitDiagnostics
();
5069
comp.
VerifyEmitDiagnostics
();
5236
comp.
VerifyEmitDiagnostics
();
5268
comp.
VerifyEmitDiagnostics
();
5329
comp.
VerifyEmitDiagnostics
();
5348
comp.
VerifyEmitDiagnostics
();
5375
comp.
VerifyEmitDiagnostics
();
5454
comp.
VerifyEmitDiagnostics
();
5509
comp.
VerifyEmitDiagnostics
();
5548
comp.
VerifyEmitDiagnostics
();
5589
comp.
VerifyEmitDiagnostics
();
5767
comp.
VerifyEmitDiagnostics
();
5789
comp.
VerifyEmitDiagnostics
();
5886
comp.
VerifyEmitDiagnostics
();
5915
comp.
VerifyEmitDiagnostics
();
5964
comp.
VerifyEmitDiagnostics
();
6007
comp.
VerifyEmitDiagnostics
();
6048
comp.
VerifyEmitDiagnostics
();
6089
comp.
VerifyEmitDiagnostics
();
6129
comp.
VerifyEmitDiagnostics
();
6153
comp.
VerifyEmitDiagnostics
();
6177
comp.
VerifyEmitDiagnostics
();
6337
comp.
VerifyEmitDiagnostics
();
6700
comp.
VerifyEmitDiagnostics
();
6846
comp.
VerifyEmitDiagnostics
();
7083
comp.
VerifyEmitDiagnostics
();
7188
comp.
VerifyEmitDiagnostics
();
7274
comp.
VerifyEmitDiagnostics
();
7301
comp.
VerifyEmitDiagnostics
();
7323
comp.
VerifyEmitDiagnostics
();
7346
comp.
VerifyEmitDiagnostics
();
7361
comp.
VerifyEmitDiagnostics
();
7449
comp.
VerifyEmitDiagnostics
();
7488
comp.
VerifyEmitDiagnostics
();
7588
comp.
VerifyEmitDiagnostics
();
7613
comp.
VerifyEmitDiagnostics
();
7915
comp.
VerifyEmitDiagnostics
();
7949
comp.
VerifyEmitDiagnostics
();
16882
comp.
VerifyEmitDiagnostics
();
16916
comp.
VerifyEmitDiagnostics
();
20177
comp.
VerifyEmitDiagnostics
();
20329
comp.
VerifyEmitDiagnostics
();
24661
comp.
VerifyEmitDiagnostics
();
27944
compDebug.
VerifyEmitDiagnostics
();
27947
compRelease.
VerifyEmitDiagnostics
();
27967
compDebug.
VerifyEmitDiagnostics
();
27970
compRelease.
VerifyEmitDiagnostics
();
29625
comp.
VerifyEmitDiagnostics
();
29646
comp.
VerifyEmitDiagnostics
();
29832
comp.
VerifyEmitDiagnostics
();
29869
comp.
VerifyEmitDiagnostics
();
30209
compA.
VerifyEmitDiagnostics
();
30239
compB.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (3)
EndToEndTests.cs (3)
252
compilation.
VerifyEmitDiagnostics
();
489
comp.
VerifyEmitDiagnostics
();
608
comp.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (20)
IOperation\IOperationTests_IArgument.cs (20)
1468
comp.
VerifyEmitDiagnostics
(expectedDiagnostics0);
1471
comp0.
VerifyEmitDiagnostics
(expectedDiagnostics0);
1475
comp1.
VerifyEmitDiagnostics
(DiagnosticDescription.None);
1514
comp.
VerifyEmitDiagnostics
();
1517
comp0.
VerifyEmitDiagnostics
();
1521
comp1.
VerifyEmitDiagnostics
(DiagnosticDescription.None);
1560
comp.
VerifyEmitDiagnostics
();
1563
comp0.
VerifyEmitDiagnostics
();
1567
comp1.
VerifyEmitDiagnostics
(DiagnosticDescription.None);
1605
comp.
VerifyEmitDiagnostics
();
1608
comp0.
VerifyEmitDiagnostics
();
1612
comp1.
VerifyEmitDiagnostics
(DiagnosticDescription.None);
1651
comp.
VerifyEmitDiagnostics
();
1654
comp0.
VerifyEmitDiagnostics
();
1658
comp1.
VerifyEmitDiagnostics
(DiagnosticDescription.None);
2854
comp.
VerifyEmitDiagnostics
(expectedDiagnostics);
2900
comp.
VerifyEmitDiagnostics
(expectedDiagnostics);
2949
comp.
VerifyEmitDiagnostics
(expectedDiagnostics);
4015
comp.
VerifyEmitDiagnostics
(expectedDiagnostics);
4093
comp.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (381)
Semantics\BindingAsyncTasklikeMoreTests.cs (2)
1118
compilation.
VerifyEmitDiagnostics
();
1276
compilation.
VerifyEmitDiagnostics
();
Semantics\BindingAsyncTests.cs (1)
3949
compilation.
VerifyEmitDiagnostics
();
Semantics\ColorColorTests.cs (3)
2087
refLib.
VerifyEmitDiagnostics
();
2132
refLib.
VerifyEmitDiagnostics
();
2185
compilation.
VerifyEmitDiagnostics
(obsoleteWarning, obsoleteWarning);
Semantics\DeconstructionTests.cs (1)
1286
comp.
VerifyEmitDiagnostics
();
Semantics\DelegateTypeTests.cs (12)
14728
comp.
VerifyEmitDiagnostics
();
18524
comp.
VerifyEmitDiagnostics
();
18619
comp.
VerifyEmitDiagnostics
();
18657
comp.
VerifyEmitDiagnostics
();
18693
comp.
VerifyEmitDiagnostics
();
18764
comp.
VerifyEmitDiagnostics
();
18809
comp.
VerifyEmitDiagnostics
();
18856
comp2.
VerifyEmitDiagnostics
();
18912
comp.
VerifyEmitDiagnostics
();
18993
comp.
VerifyEmitDiagnostics
();
19042
comp.
VerifyEmitDiagnostics
();
19097
comp2.
VerifyEmitDiagnostics
();
Semantics\DynamicTests.cs (13)
5056
comp3.
VerifyEmitDiagnostics
();
5552
comp.
VerifyEmitDiagnostics
();
5907
comp.
VerifyEmitDiagnostics
();
7021
comp.
VerifyEmitDiagnostics
();
7543
comp.
VerifyEmitDiagnostics
();
7928
comp.
VerifyEmitDiagnostics
();
8754
comp.
VerifyEmitDiagnostics
();
8823
comp.
VerifyEmitDiagnostics
();
9222
comp.
VerifyEmitDiagnostics
();
9638
comp3.
VerifyEmitDiagnostics
();
9969
comp3.
VerifyEmitDiagnostics
();
10381
comp.
VerifyEmitDiagnostics
();
10925
comp.
VerifyEmitDiagnostics
();
Semantics\ForEachTests.cs (4)
3535
}").
VerifyEmitDiagnostics
();
3566
}").
VerifyEmitDiagnostics
();
3595
}").
VerifyEmitDiagnostics
();
3624
}").
VerifyEmitDiagnostics
();
Semantics\IndexAndRangeTests.cs (2)
1776
comp.
VerifyEmitDiagnostics
();
1809
comp.
VerifyEmitDiagnostics
();
Semantics\InitOnlyMemberTests.cs (16)
946
comp.
VerifyEmitDiagnostics
();
2105
libComp.
VerifyEmitDiagnostics
();
2787
comp.
VerifyEmitDiagnostics
();
3010
comp.
VerifyEmitDiagnostics
();
4138
comp.
VerifyEmitDiagnostics
();
4563
comp.
VerifyEmitDiagnostics
();
4666
comp.
VerifyEmitDiagnostics
();
4673
comp.
VerifyEmitDiagnostics
();
4680
comp.
VerifyEmitDiagnostics
();
4687
comp.
VerifyEmitDiagnostics
();
4694
comp.
VerifyEmitDiagnostics
();
4701
comp.
VerifyEmitDiagnostics
();
4708
comp.
VerifyEmitDiagnostics
();
4747
comp.
VerifyEmitDiagnostics
();
4754
comp.
VerifyEmitDiagnostics
();
4762
comp.
VerifyEmitDiagnostics
();
Semantics\InterceptorsTests.cs (1)
213
comp.
VerifyEmitDiagnostics
();
Semantics\InterpolationTests.cs (4)
4456
comp.
VerifyEmitDiagnostics
();
5849
comp.
VerifyEmitDiagnostics
();
6847
comp.
VerifyEmitDiagnostics
();
7804
comp.
VerifyEmitDiagnostics
();
Semantics\IteratorTests.cs (1)
512
comp.
VerifyEmitDiagnostics
(); // without the fix for bug 11649, the compilation would fail emitting
Semantics\LambdaTests.cs (2)
3419
comp.
VerifyEmitDiagnostics
();
5632
comp.
VerifyEmitDiagnostics
();
Semantics\LocalFunctionTests.cs (10)
5142
.
VerifyEmitDiagnostics
();
5158
.
VerifyEmitDiagnostics
();
5165
.
VerifyEmitDiagnostics
();
5177
.
VerifyEmitDiagnostics
();
5184
.
VerifyEmitDiagnostics
();
5196
.
VerifyEmitDiagnostics
();
5203
.
VerifyEmitDiagnostics
();
5215
.
VerifyEmitDiagnostics
();
5222
.
VerifyEmitDiagnostics
();
5234
.
VerifyEmitDiagnostics
();
Semantics\NameLengthTests.cs (1)
190
comp.
VerifyEmitDiagnostics
();
Semantics\NativeIntegerTests.cs (18)
1225
comp.
VerifyEmitDiagnostics
();
5504
comp.
VerifyEmitDiagnostics
();
5551
comp.
VerifyEmitDiagnostics
();
5607
comp.
VerifyEmitDiagnostics
();
5685
comp.
VerifyEmitDiagnostics
();
5735
comp.
VerifyEmitDiagnostics
();
5869
comp.
VerifyEmitDiagnostics
();
5872
comp.
VerifyEmitDiagnostics
();
6002
comp.
VerifyEmitDiagnostics
();
6005
comp.
VerifyEmitDiagnostics
();
6034
comp.
VerifyEmitDiagnostics
();
6037
comp.
VerifyEmitDiagnostics
();
6058
comp.
VerifyEmitDiagnostics
();
6106
comp.
VerifyEmitDiagnostics
();
13570
comp.
VerifyEmitDiagnostics
();
13606
comp.
VerifyEmitDiagnostics
();
13665
comp.
VerifyEmitDiagnostics
();
13728
comp.
VerifyEmitDiagnostics
();
Semantics\NullableReferenceTypesTests.cs (27)
8645
comp.
VerifyEmitDiagnostics
();
35766
comp.
VerifyEmitDiagnostics
(
35790
comp.
VerifyEmitDiagnostics
();
35860
comp.
VerifyEmitDiagnostics
();
75140
comp.
VerifyEmitDiagnostics
();
75349
comp.
VerifyEmitDiagnostics
();
116544
CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll)).
VerifyEmitDiagnostics
();
116545
CreateCompilation(text, options: WithNullableEnable(TestOptions.ReleaseDll), parseOptions: TestOptions.Regular.WithStrictFeature()).
VerifyEmitDiagnostics
();
116617
compilation1.
VerifyEmitDiagnostics
();
116634
compilation2.
VerifyEmitDiagnostics
();
116647
compilation3.
VerifyEmitDiagnostics
();
116756
compilation7.
VerifyEmitDiagnostics
();
138511
comp2.
VerifyEmitDiagnostics
();
145188
comp.
VerifyEmitDiagnostics
();
155846
comp.
VerifyEmitDiagnostics
();
156452
comp.
VerifyEmitDiagnostics
();
156470
comp.
VerifyEmitDiagnostics
();
156488
comp.
VerifyEmitDiagnostics
();
156507
comp.
VerifyEmitDiagnostics
();
156577
comp.
VerifyEmitDiagnostics
();
156642
comp.
VerifyEmitDiagnostics
();
156675
comp.
VerifyEmitDiagnostics
();
156711
comp.
VerifyEmitDiagnostics
();
156753
comp.
VerifyEmitDiagnostics
();
156785
comp.
VerifyEmitDiagnostics
();
156854
comp.
VerifyEmitDiagnostics
();
156993
comp.
VerifyEmitDiagnostics
();
Semantics\OverloadResolutionPerfTests.cs (1)
478
comp.
VerifyEmitDiagnostics
();
Semantics\OverloadResolutionTests.cs (7)
689
compilation.
VerifyEmitDiagnostics
();
11751
comp.
VerifyEmitDiagnostics
();
11757
comp.
VerifyEmitDiagnostics
();
11800
comp.
VerifyEmitDiagnostics
();
11806
comp.
VerifyEmitDiagnostics
();
11850
comp.
VerifyEmitDiagnostics
();
11856
comp.
VerifyEmitDiagnostics
();
Semantics\PropertyAccessTests.cs (1)
37
comp.
VerifyEmitDiagnostics
();
Semantics\RawInterpolationTests_Handler.cs (3)
2732
comp.
VerifyEmitDiagnostics
();
5105
comp.
VerifyEmitDiagnostics
();
5972
comp.
VerifyEmitDiagnostics
();
Semantics\RecordStructTests.cs (26)
1788
CreateCompilation(src).
VerifyEmitDiagnostics
();
2424
comp.
VerifyEmitDiagnostics
();
2439
comp.
VerifyEmitDiagnostics
();
2482
comp.
VerifyEmitDiagnostics
();
2522
comp.
VerifyEmitDiagnostics
();
4740
comp.
VerifyEmitDiagnostics
();
4807
comp.
VerifyEmitDiagnostics
();
5121
compDebug.
VerifyEmitDiagnostics
();
5124
compRelease.
VerifyEmitDiagnostics
();
5138
comp.
VerifyEmitDiagnostics
();
5325
comp.
VerifyEmitDiagnostics
();
5342
comp.
VerifyEmitDiagnostics
();
5399
comp.
VerifyEmitDiagnostics
();
5440
comp.
VerifyEmitDiagnostics
();
5613
comp.
VerifyEmitDiagnostics
();
5667
comp.
VerifyEmitDiagnostics
();
5733
comp.
VerifyEmitDiagnostics
();
5760
comp.
VerifyEmitDiagnostics
();
7845
comp.
VerifyEmitDiagnostics
();
8266
comp.
VerifyEmitDiagnostics
();
8442
comp.
VerifyEmitDiagnostics
();
8617
comp.
VerifyEmitDiagnostics
();
8788
comp.
VerifyEmitDiagnostics
();
8985
comp.
VerifyEmitDiagnostics
();
9154
comp.
VerifyEmitDiagnostics
();
9340
comp.
VerifyEmitDiagnostics
();
Semantics\RefEscapingTests.cs (4)
1526
comp.
VerifyEmitDiagnostics
();
1588
comp.
VerifyEmitDiagnostics
();
1651
comp.
VerifyEmitDiagnostics
();
3830
comp.
VerifyEmitDiagnostics
();
Semantics\RefFieldTests.cs (137)
98
comp.
VerifyEmitDiagnostics
();
151
comp.
VerifyEmitDiagnostics
();
176
comp.
VerifyEmitDiagnostics
();
245
comp.
VerifyEmitDiagnostics
();
313
comp.
VerifyEmitDiagnostics
();
339
comp.
VerifyEmitDiagnostics
();
371
comp.
VerifyEmitDiagnostics
();
426
comp.
VerifyEmitDiagnostics
();
507
comp.
VerifyEmitDiagnostics
();
2007
comp.
VerifyEmitDiagnostics
();
2099
comp.
VerifyEmitDiagnostics
();
2308
comp.
VerifyEmitDiagnostics
();
2899
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
3037
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
3143
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
3404
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
3458
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
3504
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
3622
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
3737
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
3822
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
4008
comp.
VerifyEmitDiagnostics
(expectedUpdatedDiagnostics);
4168
comp.
VerifyEmitDiagnostics
();
4197
comp.
VerifyEmitDiagnostics
();
4292
comp.
VerifyEmitDiagnostics
();
4311
comp.
VerifyEmitDiagnostics
();
4332
comp.
VerifyEmitDiagnostics
();
4354
comp.
VerifyEmitDiagnostics
();
4457
comp.
VerifyEmitDiagnostics
();
4502
comp.
VerifyEmitDiagnostics
();
4993
comp.
VerifyEmitDiagnostics
();
5038
comp.
VerifyEmitDiagnostics
();
5041
comp.
VerifyEmitDiagnostics
();
5180
comp.
VerifyEmitDiagnostics
();
5196
comp.
VerifyEmitDiagnostics
();
7546
comp.
VerifyEmitDiagnostics
();
7890
comp.
VerifyEmitDiagnostics
();
7996
comp.
VerifyEmitDiagnostics
();
8329
comp.
VerifyEmitDiagnostics
();
9144
comp.
VerifyEmitDiagnostics
();
9167
comp.
VerifyEmitDiagnostics
();
9190
comp.
VerifyEmitDiagnostics
();
9346
comp.
VerifyEmitDiagnostics
();
9367
comp.
VerifyEmitDiagnostics
();
9396
comp.
VerifyEmitDiagnostics
();
9472
comp.
VerifyEmitDiagnostics
();
9661
comp.
VerifyEmitDiagnostics
();
9795
comp.
VerifyEmitDiagnostics
();
10421
comp.
VerifyEmitDiagnostics
();
10473
comp.
VerifyEmitDiagnostics
();
10620
comp.
VerifyEmitDiagnostics
();
10634
comp.
VerifyEmitDiagnostics
();
10651
comp.
VerifyEmitDiagnostics
();
10665
comp.
VerifyEmitDiagnostics
();
10685
comp.
VerifyEmitDiagnostics
();
10704
comp.
VerifyEmitDiagnostics
();
10744
comp.
VerifyEmitDiagnostics
();
10763
comp.
VerifyEmitDiagnostics
();
10800
comp.
VerifyEmitDiagnostics
();
10815
comp.
VerifyEmitDiagnostics
();
10842
comp.
VerifyEmitDiagnostics
();
10855
comp.
VerifyEmitDiagnostics
();
10892
comp.
VerifyEmitDiagnostics
();
10963
comp.
VerifyEmitDiagnostics
();
11018
comp.
VerifyEmitDiagnostics
();
11092
comp.
VerifyEmitDiagnostics
();
11153
comp.
VerifyEmitDiagnostics
();
11244
comp.
VerifyEmitDiagnostics
();
11353
comp.
VerifyEmitDiagnostics
();
11468
comp.
VerifyEmitDiagnostics
();
11547
comp.
VerifyEmitDiagnostics
();
11947
comp.
VerifyEmitDiagnostics
();
11976
comp.
VerifyEmitDiagnostics
();
12054
comp.
VerifyEmitDiagnostics
();
12191
comp.
VerifyEmitDiagnostics
();
14348
comp.
VerifyEmitDiagnostics
();
14390
comp.
VerifyEmitDiagnostics
();
14518
comp.
VerifyEmitDiagnostics
();
14591
comp.
VerifyEmitDiagnostics
();
14676
comp.
VerifyEmitDiagnostics
();
17085
comp.
VerifyEmitDiagnostics
();
17150
comp.
VerifyEmitDiagnostics
();
17204
comp.
VerifyEmitDiagnostics
();
17207
comp.
VerifyEmitDiagnostics
();
17210
comp.
VerifyEmitDiagnostics
();
17228
comp.
VerifyEmitDiagnostics
();
17283
comp.
VerifyEmitDiagnostics
();
17333
comp.
VerifyEmitDiagnostics
();
17441
comp.
VerifyEmitDiagnostics
();
17536
comp.
VerifyEmitDiagnostics
();
17610
comp.
VerifyEmitDiagnostics
();
17624
comp.
VerifyEmitDiagnostics
();
17642
comp.
VerifyEmitDiagnostics
();
17665
comp.
VerifyEmitDiagnostics
();
22939
comp.
VerifyEmitDiagnostics
();
23057
comp.
VerifyEmitDiagnostics
();
23353
comp.
VerifyEmitDiagnostics
();
23639
comp.
VerifyEmitDiagnostics
();
23926
comp.
VerifyEmitDiagnostics
();
24697
comp.
VerifyEmitDiagnostics
();
25290
comp.
VerifyEmitDiagnostics
();
25447
comp.
VerifyEmitDiagnostics
();
25474
comp.
VerifyEmitDiagnostics
();
25498
comp.
VerifyEmitDiagnostics
();
25539
comp.
VerifyEmitDiagnostics
();
25557
comp.
VerifyEmitDiagnostics
();
25568
comp.
VerifyEmitDiagnostics
();
25587
comp.
VerifyEmitDiagnostics
();
25604
comp.
VerifyEmitDiagnostics
();
25625
comp.
VerifyEmitDiagnostics
();
25660
comp.
VerifyEmitDiagnostics
();
25684
comp.
VerifyEmitDiagnostics
();
25762
comp.
VerifyEmitDiagnostics
();
25833
comp.
VerifyEmitDiagnostics
();
25949
comp.
VerifyEmitDiagnostics
();
25975
comp.
VerifyEmitDiagnostics
();
25996
comp.
VerifyEmitDiagnostics
();
26171
comp.
VerifyEmitDiagnostics
();
26254
comp.
VerifyEmitDiagnostics
();
27098
comp.
VerifyEmitDiagnostics
();
27163
comp.
VerifyEmitDiagnostics
();
27172
comp.
VerifyEmitDiagnostics
();
27224
comp.
VerifyEmitDiagnostics
();
27239
comp.
VerifyEmitDiagnostics
();
27288
comp.
VerifyEmitDiagnostics
();
27303
comp.
VerifyEmitDiagnostics
();
27345
comp.
VerifyEmitDiagnostics
();
27397
comp.
VerifyEmitDiagnostics
();
27449
comp.
VerifyEmitDiagnostics
();
28249
comp.
VerifyEmitDiagnostics
();
28297
comp.
VerifyEmitDiagnostics
();
29114
comp.
VerifyEmitDiagnostics
();
29182
comp.
VerifyEmitDiagnostics
();
29313
comp.
VerifyEmitDiagnostics
();
29374
comp.
VerifyEmitDiagnostics
();
29513
comp.
VerifyEmitDiagnostics
();
29545
comp.
VerifyEmitDiagnostics
();
Semantics\RefLocalsAndReturnsTests.cs (7)
1248
comp.
VerifyEmitDiagnostics
();
1265
comp.
VerifyEmitDiagnostics
();
3199
CreateCompilation(code, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
3200
CreateCompilation(code).
VerifyEmitDiagnostics
();
3360
CreateCompilation(code, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
3361
CreateCompilation(code).
VerifyEmitDiagnostics
();
3862
CreateCompilationWithMscorlib46(text).
VerifyEmitDiagnostics
();
Semantics\ScriptSemanticsTests.cs (3)
120
script.
VerifyEmitDiagnostics
();
165
script.
VerifyEmitDiagnostics
();
1073
s1.
VerifyEmitDiagnostics
();
Semantics\SemanticErrorTests.cs (1)
15137
comp.
VerifyEmitDiagnostics
(expected);
Semantics\TargetTypedConditionalOperatorTests.cs (4)
433
.
VerifyEmitDiagnostics
();
435
.
VerifyEmitDiagnostics
();
452
.
VerifyEmitDiagnostics
();
454
.
VerifyEmitDiagnostics
();
Semantics\TargetTypedDefaultTests.cs (7)
1058
comp.
VerifyEmitDiagnostics
();
2290
comp.
VerifyEmitDiagnostics
();
2308
comp.
VerifyEmitDiagnostics
();
2327
comp.
VerifyEmitDiagnostics
();
2408
comp.
VerifyEmitDiagnostics
();
2450
comp.
VerifyEmitDiagnostics
();
2610
comp.
VerifyEmitDiagnostics
();
Semantics\TopLevelStatementsTests.cs (13)
1131
comp.
VerifyEmitDiagnostics
();
1134
comp.
VerifyEmitDiagnostics
();
5370
comp.
VerifyEmitDiagnostics
();
5390
comp.
VerifyEmitDiagnostics
();
5411
comp.
VerifyEmitDiagnostics
();
5615
comp.
VerifyEmitDiagnostics
();
5640
comp.
VerifyEmitDiagnostics
();
8273
comp.
VerifyEmitDiagnostics
();
8351
comp.
VerifyEmitDiagnostics
();
8398
comp.
VerifyEmitDiagnostics
();
8443
comp.
VerifyEmitDiagnostics
();
9441
comp.
VerifyEmitDiagnostics
();
9498
comp.
VerifyEmitDiagnostics
();
Semantics\UninitializedNonNullableFieldTests.cs (1)
2876
comp.
VerifyEmitDiagnostics
();
Semantics\UnsafeTests.cs (30)
283
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
284
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
306
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
307
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
329
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
330
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
353
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
354
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
644
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
645
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
853
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
878
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
879
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
905
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
906
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
955
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
983
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
984
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
985
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
1006
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
1034
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
1066
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
1098
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
2595
CreateCompilation(code, parseOptions: TestOptions.Regular12, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
2596
CreateCompilation(code, parseOptions: TestOptions.Regular13, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
2597
CreateCompilation(code, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
3265
CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
3266
CreateCompilation(withUnsafeOnMembers, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
3275
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
3276
CreateCompilation(withUnsafeOnTypeAndMembers, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
Semantics\UserDefinedConversionTests.cs (1)
1153
comp.
VerifyEmitDiagnostics
();
Semantics\UseSiteErrorTests.cs (15)
1127
main.
VerifyEmitDiagnostics
();
2307
compilation1.
VerifyEmitDiagnostics
();
2324
compilation2.
VerifyEmitDiagnostics
();
2335
compilation3.
VerifyEmitDiagnostics
();
2421
compilation7.
VerifyEmitDiagnostics
();
2495
comp.
VerifyEmitDiagnostics
();
2521
comp.
VerifyEmitDiagnostics
();
2546
comp.
VerifyEmitDiagnostics
();
2591
comp.
VerifyEmitDiagnostics
();
2633
comp.
VerifyEmitDiagnostics
();
2668
comp.
VerifyEmitDiagnostics
();
2708
comp.
VerifyEmitDiagnostics
();
2739
comp.
VerifyEmitDiagnostics
();
2753
comp.
VerifyEmitDiagnostics
();
2770
comp.
VerifyEmitDiagnostics
();
Semantics\ValueTupleTests.cs (2)
331
comp.
VerifyEmitDiagnostics
();
361
comp.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (124)
Compilation\CompilationAPITests.cs (34)
276
CSharpCompilation.Create(@"C:/goo/Test.exe").
VerifyEmitDiagnostics
(
289
CSharpCompilation.Create(@"\goo/Test.exe", options: compilationOptions).
VerifyEmitDiagnostics
(
293
CSharpCompilation.Create(@"C:Test.exe", options: compilationOptions).
VerifyEmitDiagnostics
(
297
CSharpCompilation.Create(@"Te\0st.exe", options: compilationOptions).
VerifyEmitDiagnostics
(
301
CSharpCompilation.Create(@" \t ", options: compilationOptions).
VerifyEmitDiagnostics
(
305
CSharpCompilation.Create(@"\uD800", options: compilationOptions).
VerifyEmitDiagnostics
(
309
CSharpCompilation.Create(@"", options: compilationOptions).
VerifyEmitDiagnostics
(
313
CSharpCompilation.Create(@" a", options: compilationOptions).
VerifyEmitDiagnostics
(
317
CSharpCompilation.Create(@"\u2000a", options: compilationOptions).
VerifyEmitDiagnostics
( // U+20700 is whitespace
321
CSharpCompilation.Create("..\\..\\RelativePath", options: compilationOptions).
VerifyEmitDiagnostics
(
327
CSharpCompilation.Create(@";,*?<>#!@&", options: compilationOptions).
VerifyEmitDiagnostics
();
328
CSharpCompilation.Create("goo", options: compilationOptions).
VerifyEmitDiagnostics
();
329
CSharpCompilation.Create(".goo", options: compilationOptions).
VerifyEmitDiagnostics
();
330
CSharpCompilation.Create("goo ", options: compilationOptions).
VerifyEmitDiagnostics
(); // can end with whitespace
331
CSharpCompilation.Create("....", options: compilationOptions).
VerifyEmitDiagnostics
();
332
CSharpCompilation.Create(null, options: compilationOptions).
VerifyEmitDiagnostics
();
984
netModule1.
VerifyEmitDiagnostics
();
998
netModule2.
VerifyEmitDiagnostics
();
1012
assembly.
VerifyEmitDiagnostics
(
1027
assembly.
VerifyEmitDiagnostics
();
1040
netModule1.
VerifyEmitDiagnostics
();
1054
netModule2.
VerifyEmitDiagnostics
();
1068
netModule3.
VerifyEmitDiagnostics
();
1082
assembly.
VerifyEmitDiagnostics
(
1104
netModule1.
VerifyEmitDiagnostics
();
1118
assembly.
VerifyEmitDiagnostics
();
1129
netModule1.
VerifyEmitDiagnostics
();
1143
netModule2.
VerifyEmitDiagnostics
();
1157
assembly.
VerifyEmitDiagnostics
(Diagnostic(ErrorCode.ERR_NetModuleNameMustBeUnique).WithArguments("a1.netmodule"));
1691
compilation.
VerifyEmitDiagnostics
();
1699
compilation.
VerifyEmitDiagnostics
();
3104
comp.
VerifyEmitDiagnostics
();
3123
comp.
VerifyEmitDiagnostics
(
3144
comp.
VerifyEmitDiagnostics
(
Compilation\ReferenceManagerTests.cs (9)
2537
c.
VerifyEmitDiagnostics
();
2566
c.
VerifyEmitDiagnostics
();
2648
c.
VerifyEmitDiagnostics
();
2684
c.
VerifyEmitDiagnostics
();
2780
c.
VerifyEmitDiagnostics
();
2812
c.
VerifyEmitDiagnostics
();
3019
c.
VerifyEmitDiagnostics
();
3193
c.
VerifyEmitDiagnostics
();
3233
c.
VerifyEmitDiagnostics
();
Symbols\AssemblyAndNamespaceTests.cs (1)
689
comp.
VerifyEmitDiagnostics
();
Symbols\ConversionTests.cs (4)
449
comp.
VerifyEmitDiagnostics
();
681
comp.
VerifyEmitDiagnostics
();
712
comp.
VerifyEmitDiagnostics
();
761
comp.
VerifyEmitDiagnostics
();
Symbols\DefaultInterfaceImplementationTests.cs (5)
3324
compilation1.
VerifyEmitDiagnostics
();
6358
compilation1.
VerifyEmitDiagnostics
(expected);
16311
compilation1.
VerifyEmitDiagnostics
(expected);
33216
targetFramework: TargetFramework.Net60).
VerifyEmitDiagnostics
();
33245
targetFramework: TargetFramework.Net60).
VerifyEmitDiagnostics
();
Symbols\IndexedPropertyTests.cs (1)
2766
compilation2.
VerifyEmitDiagnostics
(); // Used to assert.
Symbols\LocalFunctionTests.cs (2)
277
""").
VerifyEmitDiagnostics
();
425
""").
VerifyEmitDiagnostics
();
Symbols\MissingSpecialMember.cs (3)
105
comp.
VerifyEmitDiagnostics
(
1605
compilation.
VerifyEmitDiagnostics
();
2388
compilation.
VerifyEmitDiagnostics
(); // We don't expect any
Symbols\PartialPropertiesTests.cs (2)
1676
comp.
VerifyEmitDiagnostics
();
3320
comp.
VerifyEmitDiagnostics
();
Symbols\RequiredMembersTests.cs (10)
2024
baseComp.
VerifyEmitDiagnostics
();
2062
baseComp.
VerifyEmitDiagnostics
();
2118
baseComp.
VerifyEmitDiagnostics
();
2151
baseComp.
VerifyEmitDiagnostics
();
2182
baseComp.
VerifyEmitDiagnostics
();
2350
baseComp.
VerifyEmitDiagnostics
();
2385
baseComp.
VerifyEmitDiagnostics
();
2424
baseComp.
VerifyEmitDiagnostics
();
2456
baseComp.
VerifyEmitDiagnostics
();
7598
comp.
VerifyEmitDiagnostics
();
Symbols\Retargeting\NoPia.cs (15)
1572
pia.
VerifyEmitDiagnostics
();
1588
comp1.
VerifyEmitDiagnostics
(expectedDiagnostics);
1592
comp2.
VerifyEmitDiagnostics
(expectedDiagnostics);
1625
pia.
VerifyEmitDiagnostics
();
1641
comp1.
VerifyEmitDiagnostics
(expectedDiagnostics);
1645
comp2.
VerifyEmitDiagnostics
(expectedDiagnostics);
1669
pia.
VerifyEmitDiagnostics
();
1683
comp1.
VerifyEmitDiagnostics
(expectedDiagnostics);
1687
comp2.
VerifyEmitDiagnostics
(expectedDiagnostics);
1719
pia.
VerifyEmitDiagnostics
();
1738
comp1.
VerifyEmitDiagnostics
(expectedDiagnostics);
1742
comp2.
VerifyEmitDiagnostics
(expectedDiagnostics);
1777
lib.
VerifyEmitDiagnostics
();
1806
comp1.
VerifyEmitDiagnostics
(expectedDiagnostics);
1810
comp2.
VerifyEmitDiagnostics
(expectedDiagnostics);
Symbols\Source\CustomModifierCopyTests.cs (3)
322
comp.
VerifyEmitDiagnostics
();
358
comp.
VerifyEmitDiagnostics
();
412
comp.
VerifyEmitDiagnostics
();
Symbols\Source\FileModifierTests.cs (5)
1001
comp.
VerifyEmitDiagnostics
();
5108
comp1.
VerifyEmitDiagnostics
();
5111
comp2.
VerifyEmitDiagnostics
();
5114
comp2.
VerifyEmitDiagnostics
();
5117
comp1.
VerifyEmitDiagnostics
();
Symbols\Source\NullablePublicAPITests.cs (1)
5451
comp.
VerifyEmitDiagnostics
();
Symbols\Source\RecordTests.cs (3)
1561
comp.
VerifyEmitDiagnostics
();
1583
comp.
VerifyEmitDiagnostics
();
1605
comp.
VerifyEmitDiagnostics
();
Symbols\StaticAbstractMembersInInterfacesTests.cs (19)
6474
compilation2.
VerifyEmitDiagnostics
();
6492
compilation2.
VerifyEmitDiagnostics
();
16358
compilation1.
VerifyEmitDiagnostics
();
16389
compilation2.
VerifyEmitDiagnostics
();
16435
compilation1.
VerifyEmitDiagnostics
();
20487
compilation1.
VerifyEmitDiagnostics
();
20519
compilation2.
VerifyEmitDiagnostics
();
20567
compilation1.
VerifyEmitDiagnostics
();
20599
compilation2.
VerifyEmitDiagnostics
();
20657
compilation1.
VerifyEmitDiagnostics
();
20722
compilation1.
VerifyEmitDiagnostics
();
23479
compilation1.
VerifyEmitDiagnostics
();
24342
compilation1.
VerifyEmitDiagnostics
();
26172
compilation1.
VerifyEmitDiagnostics
();
26210
compilation2.
VerifyEmitDiagnostics
();
26870
compilation1.
VerifyEmitDiagnostics
();
29092
compilation1.
VerifyEmitDiagnostics
();
29124
compilation2.
VerifyEmitDiagnostics
();
29186
compilation1.
VerifyEmitDiagnostics
();
Symbols\SymbolErrorTests.cs (7)
21596
comp1_v2.
VerifyEmitDiagnostics
();
21605
comp1_v3.
VerifyEmitDiagnostics
();
21623
comp1_v4.
VerifyEmitDiagnostics
();
21691
comp1_v2.
VerifyEmitDiagnostics
();
21700
comp1_v3.
VerifyEmitDiagnostics
();
21718
comp1_v4.
VerifyEmitDiagnostics
();
21774
comp2.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (44)
Diagnostics\DiagnosticTest.cs (1)
2470
compilation.
VerifyEmitDiagnostics
(expected);
Syntax\FieldAndValueKeywordTests.cs (43)
59
comp.
VerifyEmitDiagnostics
();
86
comp.
VerifyEmitDiagnostics
();
108
comp.
VerifyEmitDiagnostics
();
145
comp.
VerifyEmitDiagnostics
();
171
comp.
VerifyEmitDiagnostics
();
199
comp.
VerifyEmitDiagnostics
();
217
comp.
VerifyEmitDiagnostics
();
235
comp.
VerifyEmitDiagnostics
();
263
comp.
VerifyEmitDiagnostics
();
291
comp.
VerifyEmitDiagnostics
();
309
comp.
VerifyEmitDiagnostics
();
335
comp.
VerifyEmitDiagnostics
();
362
comp.
VerifyEmitDiagnostics
();
389
comp.
VerifyEmitDiagnostics
();
416
comp.
VerifyEmitDiagnostics
();
443
comp.
VerifyEmitDiagnostics
();
461
comp.
VerifyEmitDiagnostics
();
478
comp.
VerifyEmitDiagnostics
();
495
comp.
VerifyEmitDiagnostics
();
512
comp.
VerifyEmitDiagnostics
();
528
comp.
VerifyEmitDiagnostics
();
568
comp.
VerifyEmitDiagnostics
();
585
comp.
VerifyEmitDiagnostics
();
611
comp.
VerifyEmitDiagnostics
();
637
comp.
VerifyEmitDiagnostics
();
710
comp.
VerifyEmitDiagnostics
();
748
comp.
VerifyEmitDiagnostics
();
784
comp.
VerifyEmitDiagnostics
();
820
comp.
VerifyEmitDiagnostics
();
856
comp.
VerifyEmitDiagnostics
();
880
comp.
VerifyEmitDiagnostics
();
903
comp.
VerifyEmitDiagnostics
();
936
comp.
VerifyEmitDiagnostics
();
970
comp.
VerifyEmitDiagnostics
();
1029
comp.
VerifyEmitDiagnostics
();
1081
comp.
VerifyEmitDiagnostics
();
1113
comp.
VerifyEmitDiagnostics
();
1127
comp.
VerifyEmitDiagnostics
();
1228
comp.
VerifyEmitDiagnostics
();
1239
comp.
VerifyEmitDiagnostics
();
1249
comp.
VerifyEmitDiagnostics
();
1259
comp.
VerifyEmitDiagnostics
();
1270
comp.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpRebuildTests.cs (1)
42
rebuild.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationExtensions.cs (1)
513
compilation.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
1222
compilation.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (9)
Attributes\AssemblyAttributes.vb (2)
760
other.
VerifyEmitDiagnostics
()
1041
compilation.
VerifyEmitDiagnostics
()
Attributes\InternalsVisibleToAndStrongNameTests.vb (3)
1138
comp.
VerifyEmitDiagnostics
()
2302
Dim compilation = CreateCompilationWithMscorlib40(String.Empty, options:=options, parseOptions:=parseOptions).
VerifyEmitDiagnostics
()
2312
Dim compilation = CreateCompilationWithMscorlib40(String.Empty, options:=options, parseOptions:=parseOptions).
VerifyEmitDiagnostics
()
Emit\CompilationEmitTests.vb (2)
995
comp.
VerifyEmitDiagnostics
()
1005
comp.
VerifyEmitDiagnostics
()
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (2)
2346
c.
VerifyEmitDiagnostics
()
2383
c.
VerifyEmitDiagnostics
()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (2)
2067
c.
VerifyEmitDiagnostics
()
2074
c.
VerifyEmitDiagnostics
()