72 references to Diagnostic
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (28)
RemoveUnnecessaryExpressionParenthesesTests.cs (1)
51
=> TestHelpers.
Diagnostic
(IDEDiagnosticIds.RemoveUnnecessaryParenthesesDiagnosticId, text, startLocation: new LinePosition(line, column));
RemoveUnusedParametersTests.cs (26)
77
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
110
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
144
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
161
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
186
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
228
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
309
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
328
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
406
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
428
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
492
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
758
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
773
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
866
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1222
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p1").WithLocation(5, 15),
1223
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p2").WithLocation(5, 23),
1224
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p3").WithLocation(13, 23),
1225
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p4").WithLocation(13, 31),
1226
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p5").WithLocation(19, 17));
1301
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1343
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1399
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1431
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1712
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1731
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1753
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
RemoveUnusedValueAssignmentTests.cs (1)
7102
Diagnostic
("IDE0059"));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (28)
RemoveUnnecessaryExpressionParenthesesTests.cs (1)
51
=> TestHelpers.
Diagnostic
(IDEDiagnosticIds.RemoveUnnecessaryParenthesesDiagnosticId, text, startLocation: new LinePosition(line, column));
RemoveUnusedParametersTests.cs (26)
77
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
110
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
144
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
161
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
186
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
228
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
309
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
328
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
406
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
428
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
492
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
758
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
773
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
866
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1222
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p1").WithLocation(5, 15),
1223
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p2").WithLocation(5, 23),
1224
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p3").WithLocation(13, 23),
1225
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p4").WithLocation(13, 31),
1226
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p5").WithLocation(19, 17));
1301
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1343
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1399
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1431
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1712
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1731
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
1753
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId));
RemoveUnusedValueAssignmentTests.cs (1)
7102
Diagnostic
("IDE0059"));
Microsoft.CodeAnalysis.Test.Utilities (2)
TestBase.cs (1)
325
return TestHelpers.
Diagnostic
(
TestHelpers.cs (1)
130
return
Diagnostic
(
Microsoft.CodeAnalysis.UnitTests (8)
Analyzers\AnalyzerConfigTests.cs (8)
1672
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig1, /.globalconfig2").WithLocation(1, 1)
1693
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "/path/to/file1.cs", "/.globalconfig1, /.globalconfig2").WithLocation(1, 1)
1882
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "/path/to/file1.cs", "/.globalconfig1, /.globalconfig2").WithLocation(1, 1)
1901
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig1, /.globalconfig2").WithLocation(1, 1)
1993
Diagnostic
("InvalidSeverityInAnalyzerConfig").WithArguments("cs000", "foo", "<Global Config>").WithLocation(1, 1)
1997
Diagnostic
("InvalidSeverityInAnalyzerConfig").WithArguments("cs001", "bar", "<Global Config>").WithLocation(1, 1)
2209
Diagnostic
("InvalidGlobalSectionName", isSuppressed: false).WithArguments(sectionName, "/.editorconfig").WithLocation(1, 1)
2461
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig3, /.globalconfig4").WithLocation(1, 1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (3)
RemoveUnnecessaryParenthesesTests.vb (1)
30
Return TestHelpers.
Diagnostic
(IDEDiagnosticIds.RemoveUnnecessaryParenthesesDiagnosticId, text, startLocation:=New LinePosition(line, column))
RemoveUnusedMembersTests.vb (1)
24
Return TestHelpers.
Diagnostic
(id)
RemoveUnusedParametersTests.vb (1)
24
Return TestHelpers.
Diagnostic
(id)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (3)
RemoveUnnecessaryParenthesesTests.vb (1)
30
Return TestHelpers.
Diagnostic
(IDEDiagnosticIds.RemoveUnnecessaryParenthesesDiagnosticId, text, startLocation:=New LinePosition(line, column))
RemoveUnusedMembersTests.vb (1)
24
Return TestHelpers.
Diagnostic
(id)
RemoveUnusedParametersTests.vb (1)
24
Return TestHelpers.
Diagnostic
(id)