609 references to Verify
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (1)
1127
diagnostics.
Verify
(
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (28)
CommandLineTests.cs (28)
958
diags.
Verify
(
965
diags.
Verify
(
972
diags.
Verify
();
980
diags.
Verify
();
987
diags.
Verify
(Diagnostic(ErrorCode.ERR_BadResourceVis).WithArguments("publi"));
991
diags.
Verify
(Diagnostic(ErrorCode.FTL_InvalidInputFileName).WithArguments(@"D:rive\relative\path"));
995
diags.
Verify
(Diagnostic(ErrorCode.FTL_InvalidInputFileName).WithArguments(@"inva\l*d?path"));
999
diags.
Verify
(Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments(""));
1003
diags.
Verify
(Diagnostic(ErrorCode.ERR_NoFileSpec).WithArguments(""));
1007
diags.
Verify
(
1013
diags.
Verify
(
1019
diags.
Verify
();
1026
diags.
Verify
(
1032
diags.
Verify
(
1038
diags.
Verify
(
1044
diags.
Verify
(
1050
diags.
Verify
(
1056
diags.
Verify
(
1063
diags.
Verify
(
1070
diags.
Verify
(
1076
diags.
Verify
();
1083
diags.
Verify
(
1091
diags.
Verify
(); // Now checked during emit.
1100
diags.
Verify
(
1919
diagnostics.
Verify
();
1925
diagnostics.
Verify
();
1931
diagnostics.
Verify
();
1937
diagnostics.
Verify
(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
58
actualDiagnostics.
Verify
(expectedDiagnostics);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
BreakingChanges.cs (2)
26
SyntaxFactory.ParseSyntaxTree(test).GetDiagnostics().
Verify
(Diagnostic(ErrorCode.ERR_PPDirectiveExpected, @"de\u0066in\U00000065"));
279
SyntaxFactory.ParseSyntaxTree(test).GetDiagnostics().
Verify
(Diagnostic(ErrorCode.ERR_GlobalAttributesNotFirst, "assembly"));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
PDB\CSharpPDBTestBase.cs (1)
28
compilation.GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
();
PDB\PDBUsingTests.cs (1)
1488
compilation.GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Info).
Verify
();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (55)
Diagnostics\GetDiagnosticsTests.cs (2)
646
effectiveDiagnostics.
Verify
(expected);
970
group1.
Verify
(
FlowAnalysis\FlowDiagnosticTests.cs (1)
868
comp.SyntaxTrees[0].GetDiagnostics().
Verify
(
Semantics\OutVarTests.cs (25)
20902
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
21015
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
21116
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
21214
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
21348
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
21579
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
21776
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
21978
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
22129
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
22224
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
22391
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
22558
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
22652
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
22766
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
22857
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
22941
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
23002
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
31261
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
31434
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
33761
compilation.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_BadAttributeArgument).
Verify
(
33859
compilation.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_BadAttributeArgument).
Verify
(
33958
compilation.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_BadAttributeArgument).
Verify
(
34056
compilation.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_BadAttributeArgument).
Verify
(
34141
compilation.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_BadAttributeArgument).
Verify
(
34197
compilation.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_BadAttributeArgument).
Verify
(
Semantics\PatternMatchingTests.cs (5)
4173
SyntaxFactory.ParseExpression("A is B < C, D > E").GetDiagnostics().
Verify
();
4174
SyntaxFactory.ParseExpression("A as B < C, D > E").GetDiagnostics().
Verify
(
4180
SyntaxFactory.ParseExpression("A as B < C, D > ?? string.Empty").GetDiagnostics().
Verify
();
4181
SyntaxFactory.ParseExpression("A is B < C, D > ?? string.Empty").GetDiagnostics().
Verify
(
5650
compilation.GetEmitDiagnostics().Where(d => d.Severity != DiagnosticSeverity.Warning).
Verify
(
Semantics\PatternMatchingTests_Scope.cs (18)
11789
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
11880
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
11975
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
12067
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
12189
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
12409
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
12600
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
12799
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
12944
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13033
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13194
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13355
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13438
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13517
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13603
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13682
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13743
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
13918
compilation.GetDiagnostics().Where(d => !exclude.Contains(d.Code)).
Verify
(
Semantics\PrimaryConstructorTests.cs (4)
8022
Verify
(builder.ToArrayAndFree());
9880
comp.GetEmitDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
11785
diagnostics.
Verify
(
11793
diagnostics.
Verify
();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
EditAndContinue\Helpers\EditingTestBase.cs (3)
154
tree1.GetDiagnostics().
Verify
();
155
tree2.GetDiagnostics().
Verify
();
217
tree.GetDiagnostics().
Verify
();
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (1)
1127
diagnostics.
Verify
(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (155)
Semantics\GlobalUsingDirectiveTests.cs (117)
887
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
890
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
893
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
896
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
958
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
961
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
964
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
1062
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
1112
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
1531
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
1551
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
1554
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
1557
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
1591
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
1611
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
1614
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
1928
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
1964
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2074
comp2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(
2084
comp3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(
2097
comp4.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(
2127
comp5.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(expected1);
2130
comp6.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(
2140
comp7.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(
2153
comp8.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(expected1);
2156
comp9.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(
2169
comp10.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(
2216
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(expected);
2219
comp2.GetSemanticModel(comp2.SyntaxTrees[2]).GetDeclarationDiagnostics().Where(d => d.Code is not ((int)ErrorCode.HDN_UnusedUsingDirective or (int)ErrorCode.HDN_UnusedExternAlias)).
Verify
(expected);
2251
comp2.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2265
comp3.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2268
comp4.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2271
comp5.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2274
comp6.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2277
comp7.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2280
comp8.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2283
comp9.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2301
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2308
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2338
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
2341
comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
2344
comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
2396
comp2.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2413
comp3.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2416
comp4.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2419
comp5.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2422
comp6.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2425
comp7.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2428
comp8.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2431
comp9.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2492
comp2.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2509
comp3.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2512
comp4.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2515
comp5.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2518
comp6.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2521
comp7.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2524
comp8.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2527
comp9.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
2557
CompileAndVerify(comp2).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2561
CompileAndVerify(comp3).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2571
CompileAndVerify(comp4).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2578
CompileAndVerify(comp5).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2588
CompileAndVerify(comp6).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2598
CompileAndVerify(comp7).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2608
CompileAndVerify(comp8).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2611
CompileAndVerify(comp9).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2635
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2642
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2671
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
2674
comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
2677
comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2711
CompileAndVerify(comp2).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2715
CompileAndVerify(comp3).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2725
CompileAndVerify(comp4).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2732
CompileAndVerify(comp5).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2742
CompileAndVerify(comp6).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2752
CompileAndVerify(comp7).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2762
CompileAndVerify(comp8).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
2765
CompileAndVerify(comp9).Diagnostics.Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2789
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2796
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
2825
comp2.GetSemanticModel(comp2.SyntaxTrees[1]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
2828
comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected);
2831
comp2.GetSemanticModel(comp2.SyntaxTrees[0]).GetDeclarationDiagnostics().Where(d => d.Code != (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
4221
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected1);
4224
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected1);
4227
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(
4241
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected2);
4249
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected2);
4257
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected1);
4260
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected1);
4263
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.ERR_DuplicateAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(
4277
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected3);
4285
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected3);
4293
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected3);
4301
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(expected3);
4309
comp.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadExternAlias or (int)ErrorCode.HDN_UnusedUsingDirective)).
Verify
(
4375
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4378
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4381
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4384
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4387
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
4394
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
4401
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
4471
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4474
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4477
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4480
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4483
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
4490
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
4497
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
4926
GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4929
GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4932
GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected1);
4945
GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
4948
GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(expected2);
4951
GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.HDN_UnusedUsingDirective).
Verify
(
Semantics\ImportsTests.cs (1)
147
comp.GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
();
Semantics\InteractiveUsingTests.cs (5)
142
CreateCompilation(source).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).
Verify
(expectedDiagnostics);
161
CreateCompilation(source, options: options).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).
Verify
(expectedDiagnostics);
179
CreateCompilation(source).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).
Verify
(expectedDiagnostics);
251
CreateCompilation(source).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).
Verify
(expectedDiagnostics);
270
CreateCompilation(source, options: options).GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Hidden).
Verify
(expectedDiagnostics);
Semantics\InterceptorsTests.cs (3)
4435
verifier.Diagnostics.Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
();
4528
verifier.Diagnostics.Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
();
7598
comp1.GetDiagnostics().Where(d => d.Location.SourceTree == interceptors).
Verify
(
Semantics\NullableReferenceTypesTests.cs (17)
98692
comp3.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
99380
comp3.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
99505
comp6.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
100157
comp3.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
100202
comp6.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
100276
comp3.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
100307
comp6.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
108372
comp1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
108436
comp1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
108583
comp1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
108745
comp1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
();
108816
comp1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
109236
comp1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
(
109352
comp1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_MissingNonNullTypesContextForAnnotation).
Verify
();
111993
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_UninitializedNonNullableField).
Verify
(
112067
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.WRN_UninitializedNonNullableField).
Verify
(
145296
comp.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_UseDefViolation).
Verify
(
Semantics\NullConditionalAssignmentTests.cs (2)
116
.
Verify
(
124
.
Verify
();
Semantics\OperatorTests.cs (2)
6272
CreateCompilation(text).GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
(
6293
CreateCompilation(text).GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
();
Semantics\OverloadResolutionPerfTests.cs (1)
313
diagnostics.
Verify
();
Semantics\QueryTests.cs (2)
4073
.
Verify
(
4115
.
Verify
();
Semantics\RefLocalsAndReturnsTests.cs (1)
2890
.
Verify
(
Semantics\Utf8StringsLiteralsTests.cs (4)
3901
CompileAndVerify(comp, expectedOutput: @"called", verify: Verification.Fails).Diagnostics.Where(d => d.Code is not (int)ErrorCode.WRN_SameFullNameThisAggAgg).
Verify
();
3947
CompileAndVerify(comp, expectedOutput: @"called", verify: Verification.Fails).Diagnostics.Where(d => d.Code is not (int)ErrorCode.WRN_SameFullNameThisAggAgg).
Verify
();
3991
CompileAndVerify(comp, expectedOutput: @"called", verify: Verification.Fails).Diagnostics.Where(d => d.Code is not (int)ErrorCode.WRN_SameFullNameThisAggAgg).
Verify
();
4034
CompileAndVerify(comp, expectedOutput: @"called", verify: Verification.Fails).Diagnostics.Where(d => d.Code is not (int)ErrorCode.WRN_SameFullNameThisAggAgg).
Verify
();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (170)
Compilation\CompilationAPITests.cs (2)
55
tree.GetDiagnostics().
Verify
(
117
tree.GetDiagnostics().
Verify
();
Compilation\SemanticModelAPITests.cs (1)
4397
compilation.GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
();
Compilation\UsedAssembliesTests.cs (2)
111
CompileAndVerify(comp2, verify: Verification.Skipped).Diagnostics.Where(d => d.Code != (int)ErrorCode.WRN_NoRuntimeMetadataVersion).
Verify
(after);
121
CompileAndVerify(comp3, verify: Verification.Skipped).Diagnostics.Where(d => d.Code != (int)ErrorCode.WRN_NoRuntimeMetadataVersion).
Verify
(after);
Symbols\CheckedUserDefinedOperatorsTests.cs (62)
146
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
154
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
189
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
210
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
229
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
249
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
270
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
332
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
368
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
393
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
424
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
596
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
659
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
666
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
683
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
709
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
();
717
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
735
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
();
768
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
1389
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1422
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1445
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1508
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1544
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1571
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1597
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1650
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1778
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
1810
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
1833
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1848
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1866
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1950
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
();
1958
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
1976
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
();
2010
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
2075
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
2083
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2101
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
2198
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
2241
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
2299
Verify
(expected);
2310
Verify
(
2343
Verify
(expected);
2393
Verify
(expected);
2404
Verify
(
2437
Verify
(expected);
2456
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2632
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2664
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2683
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2742
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2776
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2799
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2822
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
2932
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
2990
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
3042
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
();
3050
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
3068
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
();
3098
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
3156
compilation.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(expected);
Symbols\DefaultInterfaceImplementationTests.cs (3)
26803
compilation1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_EventNeedsBothAccessors).
Verify
(
27137
compilation1.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_EventNeedsBothAccessors).
Verify
(
27227
compilation2.GetDiagnostics().Where(d => d.Code != (int)ErrorCode.ERR_EventNeedsBothAccessors).
Verify
(
Symbols\Source\FileModifierTests.cs (3)
1799
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_FileTypeNested).
Verify
();
1858
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_FileTypeNested).
Verify
();
1866
comp.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_FileTypeNested).
Verify
();
Symbols\StaticAbstractMembersInInterfacesTests.cs (97)
3999
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
4044
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
4089
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
4437
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
4482
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
4527
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
5688
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
5735
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
5763
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
5812
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
7224
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_UnimplementedInterfaceMember)).
Verify
(
7318
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_UnimplementedInterfaceMember).
Verify
(
7423
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_UnimplementedInterfaceMember).
Verify
(
7529
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators or (int)ErrorCode.ERR_UnimplementedInterfaceMember)).
Verify
(
7623
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators or (int)ErrorCode.ERR_UnimplementedInterfaceMember)).
Verify
(
7722
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_UnimplementedInterfaceMember)).
Verify
(
7839
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_UnimplementedInterfaceMember).
Verify
(
7959
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_UnimplementedInterfaceMember).
Verify
(
8056
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators or (int)ErrorCode.ERR_UnimplementedInterfaceMember)).
Verify
(
8153
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators or (int)ErrorCode.ERR_UnimplementedInterfaceMember)).
Verify
(
8658
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
9113
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
9197
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
9973
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature).
Verify
(
10277
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
10397
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature or (int)ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers)).
Verify
(
12182
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature)).
Verify
(
12281
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation).
Verify
(builder.ToArrayAndFree());
12332
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
12466
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
12477
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature)).
Verify
(
12631
compilation2.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
12666
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
17592
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadIncDecRetType or (int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType)).
Verify
(
17735
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadIncDecRetType or (int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType)).
Verify
(
17878
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadIncDecRetType or (int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType)).
Verify
(
17991
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadIncDecRetType or (int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType)).
Verify
(
18127
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
18270
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
18382
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch)).
Verify
(
18529
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch)).
Verify
(
18676
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch)).
Verify
(
18829
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch)).
Verify
(
19049
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch)).
Verify
(expected);
19241
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch)).
Verify
(expected);
19349
compilation2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType)).
Verify
(expected2);
19398
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType)).
Verify
(expected3);
19450
compilation2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
19479
compilation2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
19504
(int)ErrorCode.WRN_EqualityOpWithoutGetHashCode or (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature)).
Verify
(
19545
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
19606
compilation2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType)).
Verify
(
19616
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType)).
Verify
(
19658
compilation2.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
19668
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.WRN_EqualityOpWithoutEquals or (int)ErrorCode.WRN_EqualityOpWithoutGetHashCode)).
Verify
(
19720
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_OpTFRetType or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch)).
Verify
(
19775
compilation3.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_CheckedOperatorNeedsMatch or (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature)).
Verify
(
22588
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.WRN_ExternMethodNoImplementation or (int)ErrorCode.ERR_OpTFRetType or (int)ErrorCode.ERR_OperatorNeedsMatch)).
Verify
(
22738
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.WRN_ExternMethodNoImplementation or (int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature)).
Verify
(
22804
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OpTFRetType or (int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature)).
Verify
(
22849
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_OperatorNeedsMatch or (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature)).
Verify
(
28433
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
28576
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
28685
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
28842
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
28978
compilation2.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
29011
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
29066
compilation2.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
29076
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
29118
compilation2.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
29128
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
30400
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.WRN_ExternMethodNoImplementation).
Verify
(
30530
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
30596
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers).
Verify
(
31073
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
31204
compilation3.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
32810
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
32851
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
32886
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
32927
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
32970
(int)ErrorCode.WRN_EqualityOpWithoutGetHashCode or (int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature)).
Verify
(
33015
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33057
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33093
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33135
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33197
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33235
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33267
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33305
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33337
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33375
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33407
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33445
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33477
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33515
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33547
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
33585
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.ERR_CheckedOperatorNeedsMatch).
Verify
(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (173)
Diagnostics\LineSpanDirectiveTests.cs (7)
42
treeB.GetDiagnostics().
Verify
();
88
treeB.GetDiagnostics().
Verify
();
184
treeB.GetDiagnostics().
Verify
();
234
treeB.GetDiagnostics().
Verify
();
302
treeB.GetDiagnostics().
Verify
();
354
treeB.GetDiagnostics().
Verify
();
412
treeB.GetDiagnostics().
Verify
();
IncrementalParsing\IncrementalParsingTests.cs (22)
75
oldTree.GetDiagnostics().
Verify
(
79
newTree.GetDiagnostics().
Verify
(
859
oldTree.GetDiagnostics().
Verify
();
860
newTree.GetDiagnostics().
Verify
();
917
oldTree.GetDiagnostics().
Verify
();
918
newTree.GetDiagnostics().
Verify
(
984
oldTree.GetDiagnostics().
Verify
(
988
newTree.GetDiagnostics().
Verify
();
1045
oldTree.GetDiagnostics().
Verify
();
1046
newTree.GetDiagnostics().
Verify
();
1101
oldTree.GetDiagnostics().
Verify
(
1105
newTree.GetDiagnostics().
Verify
();
1161
oldTree.GetDiagnostics().
Verify
();
1162
newTree.GetDiagnostics().
Verify
(
1223
oldTree.GetDiagnostics().
Verify
();
1224
newTree.GetDiagnostics().
Verify
();
3214
startTree.GetDiagnostics().
Verify
();
3227
parsedTree.GetDiagnostics().
Verify
(
3243
startTree.GetDiagnostics().
Verify
();
3257
parsedTree.GetDiagnostics().
Verify
(
3273
startTree.GetDiagnostics().
Verify
();
3285
parsedTree.GetDiagnostics().
Verify
(
LexicalAndXml\PreprocessorTests.cs (3)
3241
node.GetDiagnostics().
Verify
(
3264
node.GetDiagnostics().
Verify
(
3287
node.GetDiagnostics().
Verify
(
LexicalAndXml\XmlDocCommentTests.cs (9)
1807
firstComment.GetDiagnostics().
Verify
(
2447
doc.GetDiagnostics().
Verify
(
2473
doc.GetDiagnostics().
Verify
(
2547
doc.GetDiagnostics().
Verify
(
2573
doc.GetDiagnostics().
Verify
(
2793
tree.GetDiagnostics().
Verify
(
2845
tree.GetDiagnostics().
Verify
(
2889
tree.GetDiagnostics().
Verify
(
2922
tree.GetDiagnostics().
Verify
(
Parsing\AsyncParsingTests.cs (2)
2422
UsingTree("class async { async async { get; } }").GetDiagnostics().
Verify
();
2525
UsingTree("interface async { async this[async i] { get; } }").GetDiagnostics().
Verify
();
Parsing\CrefParsingTests.cs (1)
1817
UsingNode("operator }}}(A{A{T}})").GetDiagnostics().
Verify
();
Parsing\ExpressionParsingTests.cs (10)
3836
tree.GetDiagnostics().
Verify
();
3926
tree.GetDiagnostics().
Verify
();
4017
tree.GetDiagnostics().
Verify
();
4104
tree.GetDiagnostics().
Verify
();
4198
tree.GetDiagnostics().
Verify
();
4501
tree.GetDiagnostics().
Verify
();
4592
tree.GetDiagnostics().
Verify
();
4685
tree.GetDiagnostics().
Verify
();
6557
tree.GetDiagnostics().
Verify
(
6594
tree.GetDiagnostics().
Verify
(
Parsing\IgnoredDirectiveParsingTests.cs (2)
131
trivia.GetDiagnostics().
Verify
();
153
trivia.GetDiagnostics().
Verify
(
Parsing\LambdaParameterParsingTests.cs (1)
642
tree.GetDiagnostics().
Verify
(
Parsing\LocalFunctionParsingTests.cs (9)
546
tree.GetDiagnostics().
Verify
();
615
tree.GetDiagnostics().
Verify
(
720
UsingTree(code, TestOptions.Regular9).GetDiagnostics().
Verify
();
806
UsingTree(code, TestOptions.Regular9).GetDiagnostics().
Verify
();
1143
tree.GetDiagnostics().
Verify
(
1182
file.SyntaxTree.GetDiagnostics().
Verify
();
1247
file.SyntaxTree.GetDiagnostics().
Verify
(
1291
file.SyntaxTree.GetDiagnostics().
Verify
();
1706
file.SyntaxTree.GetDiagnostics().
Verify
();
Parsing\MemberDeclarationParsingTests.cs (2)
80
d.GetDiagnostics().
Verify
(
106
cu.GetDiagnostics().
Verify
(
Parsing\ParserErrorMessageTests.cs (54)
1654
firstDiag.
Verify
(Diagnostic(ErrorCode.ERR_SyntaxError, "for").WithArguments("foreach"));
3765
tree.GetDiagnostics().
Verify
();
5440
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5443
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5462
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5465
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5527
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5530
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5546
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5549
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5589
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5592
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5624
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5627
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5658
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5661
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5695
tree.GetDiagnostics().
Verify
();
5698
tree.GetDiagnostics().
Verify
();
5947
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5965
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5978
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
5986
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
6007
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
6014
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
6037
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
6050
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
6079
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
6092
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
();
6148
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp4)).GetDiagnostics().
Verify
();
6149
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)).GetDiagnostics().
Verify
();
6160
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6161
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().
Verify
();
6184
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6185
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().
Verify
();
6215
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp4)).GetDiagnostics().
Verify
();
6216
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)).GetDiagnostics().
Verify
();
6243
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)).GetDiagnostics().
Verify
();
6244
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6271
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)).GetDiagnostics().
Verify
();
6272
SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6285
SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6286
SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().
Verify
(
6304
SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6305
SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().
Verify
(
6328
SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6329
SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().
Verify
(
6348
SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6349
SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().
Verify
();
6366
tree.GetCompilationUnitRoot().GetDiagnostics().
Verify
(
6380
SyntaxFactory.ParseSyntaxTree(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().
Verify
();
6381
SyntaxFactory.ParseSyntaxTree(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().
Verify
();
6475
SyntaxFactory.ParseSyntaxTree(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6)).GetDiagnostics().
Verify
();
6477
SyntaxFactory.ParseSyntaxTree(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp5)).GetDiagnostics().
Verify
();
6627
SyntaxFactory.ParseSyntaxTree(source).GetDiagnostics().
Verify
(
Parsing\ParserRegressionTests.cs (1)
830
actualErrors.
Verify
(expectedErrors);
Parsing\ParsingErrorRecoveryTests.cs (11)
5833
file.GetDiagnostics().
Verify
(
5990
file.GetDiagnostics().
Verify
(
6159
file.GetDiagnostics().
Verify
(
7123
file.GetDiagnostics().
Verify
(
7590
syntaxTree.GetDiagnostics().
Verify
(
7646
diags.
Verify
(
7674
diags.
Verify
(
7778
tree.GetDiagnostics().
Verify
(
7809
tree.GetDiagnostics().
Verify
(
7843
tree.GetDiagnostics().
Verify
(
7868
tree.GetDiagnostics().
Verify
(
Parsing\ParsingTests.cs (6)
63
actualErrors.
Verify
(expectedErrors);
70
actualErrors.
Verify
(expectedErrors);
77
actualErrors.Take(1).
Verify
(expectedFirstError);
119
actualErrors.
Verify
(expectedErrors);
139
actualErrors.
Verify
(expectedErrors);
162
actualErrors.
Verify
(expectedErrors);
Parsing\PatternParsingTests.cs (14)
302
SyntaxFactory.ParseExpression("e is A<B> && e").GetDiagnostics().
Verify
();
303
SyntaxFactory.ParseExpression("e is A<B> || e").GetDiagnostics().
Verify
();
304
SyntaxFactory.ParseExpression("e is A<B> ^ e").GetDiagnostics().
Verify
();
305
SyntaxFactory.ParseExpression("e is A<B> | e").GetDiagnostics().
Verify
();
306
SyntaxFactory.ParseExpression("e is A<B> & e").GetDiagnostics().
Verify
();
307
SyntaxFactory.ParseExpression("e is A<B>[]").GetDiagnostics().
Verify
();
308
SyntaxFactory.ParseExpression("new { X = e is A<B> }").GetDiagnostics().
Verify
();
309
SyntaxFactory.ParseExpression("e is A<B>").GetDiagnostics().
Verify
();
311
SyntaxFactory.ParseExpression("(item is Dictionary<string, object>[])").GetDiagnostics().
Verify
();
312
SyntaxFactory.ParseExpression("A is B < C, D > [ ]").GetDiagnostics().
Verify
();
313
SyntaxFactory.ParseExpression("A is B < C, D > [ ] E").GetDiagnostics().
Verify
();
314
SyntaxFactory.ParseExpression("A < B > C").GetDiagnostics().
Verify
();
320
SyntaxFactory.ParseExpression("from s in a where s is string where s.Length > 1 select s").GetDiagnostics().
Verify
();
321
SyntaxFactory.ParseExpression("M(out int? x)").GetDiagnostics().
Verify
();
Parsing\RecordParsing.cs (5)
265
tree.GetDiagnostics().
Verify
();
309
tree.GetDiagnostics().
Verify
();
331
tree.GetDiagnostics().
Verify
();
334
tree.GetDiagnostics().
Verify
();
1218
tree.GetDiagnostics().
Verify
();
Parsing\StatementParsingTests.cs (3)
3462
tree.GetDiagnostics(root).
Verify
(
3507
tree.GetDiagnostics().
Verify
();
3532
tree.GetDiagnostics(tree.GetRoot()).
Verify
(
Parsing\TopLevelStatementsParsingTests.cs (1)
1624
tree.GetDiagnostics().
Verify
();
Syntax\LambdaUtilitiesTests.cs (1)
44
compilation.GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
();
Syntax\SyntaxFactoryTests.cs (7)
427
literal.GetDiagnostics().
Verify
();
441
literal.GetDiagnostics().
Verify
();
455
expression.Token.GetDiagnostics().
Verify
();
469
expression.Token.GetDiagnostics().
Verify
();
478
token.GetDiagnostics().
Verify
();
627
parsedWith8.GetDiagnostics().
Verify
();
630
parsedWithPreview.GetDiagnostics().
Verify
();
Syntax\SyntaxNodeTests.cs (2)
361
compilationUnit.GetDiagnostics().
Verify
(
489
compilationUnit.GetDiagnostics().
Verify
(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
CSharpTestBase.cs (3)
1843
comp2.GetEmitDiagnostics().Where(d => shouldCompare(d)).
Verify
(
2633
actualDiagnostics.
Verify
(expectedDiagnostics);
2644
actualDiagnostics.
Verify
(expectedDiagnostics);
DiagnosticExtensions.cs (2)
18
actual.Select(info => new CSDiagnostic(info, NoLocation.Singleton)).
Verify
(expected);
23
actual.Select(info => new CSDiagnostic(info, NoLocation.Singleton)).
Verify
(expected);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
70
actualDiagnostics.
Verify
(expectedDiagnostics);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
63
Verify
((IEnumerable<Diagnostic>)actual, expected);
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (3)
EditAndContinue\Helpers\EditingTestBase.vb (3)
205
tree1.GetDiagnostics().
Verify
()
206
tree2.GetDiagnostics().
Verify
()
260
tree.GetDiagnostics().
Verify
()
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
90
tree.GetDiagnostics().
Verify
(expectedDiagnostics)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2398
comp.GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Info).
Verify
();
2415
comp.GetDiagnostics().Where(d => d.Severity > DiagnosticSeverity.Info).
Verify
();
Roslyn.Test.PdbUtilities (2)
EditAndContinue\EditAndContinueTest.cs (1)
102
diff.EmitResult.Diagnostics.Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
(expectedErrors);
Reader\PdbValidation.cs (1)
536
result.Diagnostics.Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
();
SemanticSearch.BuildTask.UnitTests (3)
GenerateFilteredReferenceAssembliesTaskTests.cs (3)
129
c.GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
(
177
c.GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
(
226
c.GetDiagnostics().Where(d => d.Severity == DiagnosticSeverity.Error).
Verify
(