1139 references to VerifyEmitDiagnostics
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (103)
CodeGen\CodeGenAsyncIteratorTests.cs (12)
119
comp.
VerifyEmitDiagnostics
(expected);
136
comp.
VerifyEmitDiagnostics
(expected);
710
comp.
VerifyEmitDiagnostics
();
869
comp.
VerifyEmitDiagnostics
();
2210
comp.
VerifyEmitDiagnostics
(expected);
8516
comp.
VerifyEmitDiagnostics
();
8551
comp.
VerifyEmitDiagnostics
();
8592
comp.
VerifyEmitDiagnostics
();
8630
comp2.
VerifyEmitDiagnostics
(); // Indirectly calling IsMetadataVirtual on S.GetAsyncEnumerator (a read which causes the lock to be set)
8631
comp1.
VerifyEmitDiagnostics
(); // Would call EnsureMetadataVirtual on S.GetAsyncEnumerator and would therefore assert if S was not already ForceCompleted
8673
comp2.
VerifyEmitDiagnostics
(); // Indirectly calling IsMetadataVirtual on S.DisposeAsync (a read which causes the lock to be set)
8674
comp1.
VerifyEmitDiagnostics
(); // Would call EnsureMetadataVirtual on S.DisposeAsync and would therefore assert if S was not already ForceCompleted
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)
3832
comp.
VerifyEmitDiagnostics
(
4106
comp2.
VerifyEmitDiagnostics
();
5930
comp.
VerifyEmitDiagnostics
();
6054
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\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 (444)
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)
45
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
();
10670
comp.
VerifyEmitDiagnostics
();
FlowAnalysis\FlowDiagnosticTests.cs (1)
2127
CreateCompilationWithMscorlib461(program).
VerifyEmitDiagnostics
();
FlowAnalysis\RegionAnalysisTests.cs (1)
14140
comp.
VerifyEmitDiagnostics
();
RefReadonlyParameterTests.cs (2)
6904
CreateCompilation(source).
VerifyEmitDiagnostics
();
6920
CreateCompilation(source).
VerifyEmitDiagnostics
();
RefStructInterfacesTests.cs (99)
2721
comp.
VerifyEmitDiagnostics
();
2741
comp.
VerifyEmitDiagnostics
();
2757
comp.
VerifyEmitDiagnostics
();
2796
comp.
VerifyEmitDiagnostics
();
2816
comp.
VerifyEmitDiagnostics
();
2832
comp.
VerifyEmitDiagnostics
();
2850
comp.
VerifyEmitDiagnostics
();
2866
comp.
VerifyEmitDiagnostics
();
2903
comp.
VerifyEmitDiagnostics
();
2921
comp.
VerifyEmitDiagnostics
();
3740
comp.
VerifyEmitDiagnostics
();
3883
comp.
VerifyEmitDiagnostics
();
3932
comp.
VerifyEmitDiagnostics
();
4044
comp.
VerifyEmitDiagnostics
();
4086
comp.
VerifyEmitDiagnostics
();
4178
comp.
VerifyEmitDiagnostics
();
4232
comp.
VerifyEmitDiagnostics
();
4354
comp.
VerifyEmitDiagnostics
();
5863
CreateCompilation(src, targetFramework: TargetFramework.Net70, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
7275
comp2.
VerifyEmitDiagnostics
();
7278
comp2.
VerifyEmitDiagnostics
();
7281
comp2.
VerifyEmitDiagnostics
();
7338
comp2.
VerifyEmitDiagnostics
();
7341
comp2.
VerifyEmitDiagnostics
();
7359
comp3.
VerifyEmitDiagnostics
();
7362
comp3.
VerifyEmitDiagnostics
();
7365
comp3.
VerifyEmitDiagnostics
();
7394
comp.
VerifyEmitDiagnostics
();
7397
comp.
VerifyEmitDiagnostics
();
8687
comp2.
VerifyEmitDiagnostics
();
8690
comp2.
VerifyEmitDiagnostics
();
8693
comp2.
VerifyEmitDiagnostics
();
8746
comp2.
VerifyEmitDiagnostics
();
8749
comp2.
VerifyEmitDiagnostics
();
8763
comp3.
VerifyEmitDiagnostics
();
8766
comp3.
VerifyEmitDiagnostics
();
8769
comp3.
VerifyEmitDiagnostics
();
8796
comp.
VerifyEmitDiagnostics
();
8799
comp.
VerifyEmitDiagnostics
();
8835
comp2.
VerifyEmitDiagnostics
();
8838
comp2.
VerifyEmitDiagnostics
();
11757
comp2.
VerifyEmitDiagnostics
();
11760
comp2.
VerifyEmitDiagnostics
();
11763
comp2.
VerifyEmitDiagnostics
();
11827
comp2.
VerifyEmitDiagnostics
();
11830
comp2.
VerifyEmitDiagnostics
();
11842
comp3.
VerifyEmitDiagnostics
();
11845
comp3.
VerifyEmitDiagnostics
();
11848
comp3.
VerifyEmitDiagnostics
();
11890
comp.
VerifyEmitDiagnostics
();
11893
comp.
VerifyEmitDiagnostics
();
13717
comp2.
VerifyEmitDiagnostics
();
13720
comp2.
VerifyEmitDiagnostics
();
13794
comp2.
VerifyEmitDiagnostics
();
13797
comp2.
VerifyEmitDiagnostics
();
13815
comp3.
VerifyEmitDiagnostics
();
13818
comp3.
VerifyEmitDiagnostics
();
13821
comp3.
VerifyEmitDiagnostics
();
13870
comp.
VerifyEmitDiagnostics
();
13873
comp.
VerifyEmitDiagnostics
();
13927
comp.
VerifyEmitDiagnostics
();
13930
comp.
VerifyEmitDiagnostics
();
16140
comp2.
VerifyEmitDiagnostics
();
16143
comp2.
VerifyEmitDiagnostics
();
16146
comp2.
VerifyEmitDiagnostics
();
16199
comp2.
VerifyEmitDiagnostics
();
16202
comp2.
VerifyEmitDiagnostics
();
16216
comp3.
VerifyEmitDiagnostics
();
16219
comp3.
VerifyEmitDiagnostics
();
16222
comp3.
VerifyEmitDiagnostics
();
16250
comp.
VerifyEmitDiagnostics
();
16253
comp.
VerifyEmitDiagnostics
();
16293
comp2.
VerifyEmitDiagnostics
();
16296
comp2.
VerifyEmitDiagnostics
();
17511
comp3.
VerifyEmitDiagnostics
();
17514
comp3.
VerifyEmitDiagnostics
();
17517
comp3.
VerifyEmitDiagnostics
();
18904
comp2.
VerifyEmitDiagnostics
();
18907
comp2.
VerifyEmitDiagnostics
();
18910
comp2.
VerifyEmitDiagnostics
();
18958
comp2.
VerifyEmitDiagnostics
();
18961
comp2.
VerifyEmitDiagnostics
();
18975
comp3.
VerifyEmitDiagnostics
();
18978
comp3.
VerifyEmitDiagnostics
();
18981
comp3.
VerifyEmitDiagnostics
();
19008
comp.
VerifyEmitDiagnostics
();
19011
comp.
VerifyEmitDiagnostics
();
19047
comp2.
VerifyEmitDiagnostics
();
19050
comp2.
VerifyEmitDiagnostics
();
20053
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
20095
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
20096
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
20112
CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).
VerifyEmitDiagnostics
();
20310
CreateCompilation(src2, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
20352
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular13).
VerifyEmitDiagnostics
();
20353
CreateCompilation(src3, references: [comp1Ref], targetFramework: s_targetFrameworkSupportingByRefLikeGenerics, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular12).
VerifyEmitDiagnostics
();
20369
CreateCompilation(src3, references: [comp1Ref], targetFramework: TargetFramework.Mscorlib461Extended, options: TestOptions.ReleaseExe).
VerifyEmitDiagnostics
();
21383
comp.
VerifyEmitDiagnostics
();
22235
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
();
4805
comp.
VerifyEmitDiagnostics
();
5703
comp.
VerifyEmitDiagnostics
();
9090
comp.
VerifyEmitDiagnostics
();
12272
comp.
VerifyEmitDiagnostics
();
14177
comp.
VerifyEmitDiagnostics
();
15455
comp.
VerifyEmitDiagnostics
();
15579
comp.
VerifyEmitDiagnostics
();
19336
comp.
VerifyEmitDiagnostics
();
19485
comp.
VerifyEmitDiagnostics
();
19587
comp.
VerifyEmitDiagnostics
();
19671
comp.
VerifyEmitDiagnostics
();
20971
comp.
VerifyEmitDiagnostics
();
22627
comp.
VerifyEmitDiagnostics
();
22764
comp.
VerifyEmitDiagnostics
();
25723
comp.
VerifyEmitDiagnostics
();
26062
comp.
VerifyEmitDiagnostics
();
26182
comp.
VerifyEmitDiagnostics
();
26308
comp.
VerifyEmitDiagnostics
();
26375
comp.
VerifyEmitDiagnostics
();
26519
comp.
VerifyEmitDiagnostics
();
26588
comp.
VerifyEmitDiagnostics
();
26646
comp.
VerifyEmitDiagnostics
();
26716
comp.
VerifyEmitDiagnostics
();
26794
comp.
VerifyEmitDiagnostics
();
26856
comp.
VerifyEmitDiagnostics
();
26891
comp.
VerifyEmitDiagnostics
();
26963
comp.
VerifyEmitDiagnostics
();
27073
comp.
VerifyEmitDiagnostics
();
27102
comp.
VerifyEmitDiagnostics
();
27125
comp.
VerifyEmitDiagnostics
();
28240
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28270
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28293
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28316
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28362
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28386
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28409
var comp = CreateCompilation(new[] { source, s_collectionExtensions }).
VerifyEmitDiagnostics
();
28980
var comp = CreateCompilation(source).
VerifyEmitDiagnostics
();
29240
CreateCompilation(source).
VerifyEmitDiagnostics
();
29409
comp.
VerifyEmitDiagnostics
();
29449
comp.
VerifyEmitDiagnostics
();
29534
comp.
VerifyEmitDiagnostics
();
29558
comp.
VerifyEmitDiagnostics
();
29582
comp.
VerifyEmitDiagnostics
();
29605
comp.
VerifyEmitDiagnostics
();
30040
var comp = CreateCompilation(source).
VerifyEmitDiagnostics
();
30103
var comp = CreateCompilation(source).
VerifyEmitDiagnostics
();
31360
CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31430
CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31560
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31608
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
31764
var comp = CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
32049
CreateCompilation(src).
VerifyEmitDiagnostics
();
32094
CreateCompilation(source).
VerifyEmitDiagnostics
();
32124
CreateCompilation(source).
VerifyEmitDiagnostics
();
32174
CreateCompilation(source).
VerifyEmitDiagnostics
();
32205
CreateCompilation(source).
VerifyEmitDiagnostics
();
32249
CreateCompilation(source).
VerifyEmitDiagnostics
();
32296
CreateCompilation(source).
VerifyEmitDiagnostics
();
32414
var comp = CreateCompilation(src).
VerifyEmitDiagnostics
();
32561
var comp = CreateCompilation(src).
VerifyEmitDiagnostics
();
33427
CreateCompilation(src, targetFramework: TargetFramework.Net80).
VerifyEmitDiagnostics
();
33513
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)
125
comp.
VerifyEmitDiagnostics
();
358
comp.
VerifyEmitDiagnostics
();
474
comp.
VerifyEmitDiagnostics
();
505
comp.
VerifyEmitDiagnostics
();
509
comp2.
VerifyEmitDiagnostics
();
520
comp.
VerifyEmitDiagnostics
();
550
comp.
VerifyEmitDiagnostics
();
957
comp.
VerifyEmitDiagnostics
();
12520
comp.
VerifyEmitDiagnostics
();
12543
comp.
VerifyEmitDiagnostics
();
12599
comp.
VerifyEmitDiagnostics
();
12667
comp.
VerifyEmitDiagnostics
();
12719
comp.
VerifyEmitDiagnostics
();
12742
comp.
VerifyEmitDiagnostics
();
12832
comp.
VerifyEmitDiagnostics
();
13039
CreateCompilation(text, options: TestOptions.UnsafeReleaseDll).
VerifyEmitDiagnostics
();
13615
CreateCompilation(text).
VerifyEmitDiagnostics
();
13776
CreateCompilation(text).
VerifyEmitDiagnostics
();
13861
CreateCompilation(text).
VerifyEmitDiagnostics
();
13875
CreateCompilation(text).
VerifyEmitDiagnostics
();
14548
comp.
VerifyEmitDiagnostics
();
14562
comp.
VerifyEmitDiagnostics
();
14592
comp.
VerifyEmitDiagnostics
();
14773
comp.
VerifyEmitDiagnostics
();
14837
comp.
VerifyEmitDiagnostics
();
15195
comp.
VerifyEmitDiagnostics
();
15269
comp.
VerifyEmitDiagnostics
();
16179
comp.
VerifyEmitDiagnostics
();
16197
comp.
VerifyEmitDiagnostics
();
16340
comp.
VerifyEmitDiagnostics
();
19751
comp.
VerifyEmitDiagnostics
();
20110
comp.
VerifyEmitDiagnostics
();
20912
comp.
VerifyEmitDiagnostics
();
20934
comp.
VerifyEmitDiagnostics
();
20985
comp.
VerifyEmitDiagnostics
();
22259
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
();
16837
comp.
VerifyEmitDiagnostics
();
16871
comp.
VerifyEmitDiagnostics
();
20132
comp.
VerifyEmitDiagnostics
();
20284
comp.
VerifyEmitDiagnostics
();
24616
comp.
VerifyEmitDiagnostics
();
27899
compDebug.
VerifyEmitDiagnostics
();
27902
compRelease.
VerifyEmitDiagnostics
();
27922
compDebug.
VerifyEmitDiagnostics
();
27925
compRelease.
VerifyEmitDiagnostics
();
29580
comp.
VerifyEmitDiagnostics
();
29601
comp.
VerifyEmitDiagnostics
();
29787
comp.
VerifyEmitDiagnostics
();
29824
comp.
VerifyEmitDiagnostics
();
30164
compA.
VerifyEmitDiagnostics
();
30194
compB.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (3)
EndToEndTests.cs (3)
250
compilation.
VerifyEmitDiagnostics
();
487
comp.
VerifyEmitDiagnostics
();
606
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)
14696
comp.
VerifyEmitDiagnostics
();
18492
comp.
VerifyEmitDiagnostics
();
18587
comp.
VerifyEmitDiagnostics
();
18625
comp.
VerifyEmitDiagnostics
();
18661
comp.
VerifyEmitDiagnostics
();
18732
comp.
VerifyEmitDiagnostics
();
18777
comp.
VerifyEmitDiagnostics
();
18824
comp2.
VerifyEmitDiagnostics
();
18880
comp.
VerifyEmitDiagnostics
();
18961
comp.
VerifyEmitDiagnostics
();
19010
comp.
VerifyEmitDiagnostics
();
19065
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)
161
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
();
22386
comp.
VerifyEmitDiagnostics
();
22504
comp.
VerifyEmitDiagnostics
();
22800
comp.
VerifyEmitDiagnostics
();
23086
comp.
VerifyEmitDiagnostics
();
23373
comp.
VerifyEmitDiagnostics
();
24144
comp.
VerifyEmitDiagnostics
();
24737
comp.
VerifyEmitDiagnostics
();
24884
comp.
VerifyEmitDiagnostics
();
24911
comp.
VerifyEmitDiagnostics
();
24935
comp.
VerifyEmitDiagnostics
();
24976
comp.
VerifyEmitDiagnostics
();
24994
comp.
VerifyEmitDiagnostics
();
25005
comp.
VerifyEmitDiagnostics
();
25024
comp.
VerifyEmitDiagnostics
();
25041
comp.
VerifyEmitDiagnostics
();
25062
comp.
VerifyEmitDiagnostics
();
25097
comp.
VerifyEmitDiagnostics
();
25121
comp.
VerifyEmitDiagnostics
();
25199
comp.
VerifyEmitDiagnostics
();
25270
comp.
VerifyEmitDiagnostics
();
25386
comp.
VerifyEmitDiagnostics
();
25412
comp.
VerifyEmitDiagnostics
();
25433
comp.
VerifyEmitDiagnostics
();
25608
comp.
VerifyEmitDiagnostics
();
25691
comp.
VerifyEmitDiagnostics
();
26535
comp.
VerifyEmitDiagnostics
();
26600
comp.
VerifyEmitDiagnostics
();
26609
comp.
VerifyEmitDiagnostics
();
26661
comp.
VerifyEmitDiagnostics
();
26676
comp.
VerifyEmitDiagnostics
();
26725
comp.
VerifyEmitDiagnostics
();
26740
comp.
VerifyEmitDiagnostics
();
26782
comp.
VerifyEmitDiagnostics
();
26834
comp.
VerifyEmitDiagnostics
();
26886
comp.
VerifyEmitDiagnostics
();
27686
comp.
VerifyEmitDiagnostics
();
27734
comp.
VerifyEmitDiagnostics
();
28551
comp.
VerifyEmitDiagnostics
();
28619
comp.
VerifyEmitDiagnostics
();
28750
comp.
VerifyEmitDiagnostics
();
28811
comp.
VerifyEmitDiagnostics
();
28950
comp.
VerifyEmitDiagnostics
();
28982
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
();
2737
comp.
VerifyEmitDiagnostics
();
2751
comp.
VerifyEmitDiagnostics
();
2768
comp.
VerifyEmitDiagnostics
();
Semantics\ValueTupleTests.cs (2)
331
comp.
VerifyEmitDiagnostics
();
361
comp.
VerifyEmitDiagnostics
();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (120)
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\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
();
6903
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)
2464
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
()