24 references to Diagnostic
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (7)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (1)
50
=> TestHelpers.
Diagnostic
(IDEDiagnosticIds.RemoveUnnecessaryParenthesesDiagnosticId, text, startLocation: new LinePosition(line, column));
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (5)
1128
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p1").WithLocation(5, 15),
1129
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p2").WithLocation(5, 23),
1130
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p3").WithLocation(13, 23),
1131
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p4").WithLocation(13, 31),
1132
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p5").WithLocation(19, 17));
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (1)
7191
Diagnostic
("IDE0059"));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (7)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (1)
50
=> TestHelpers.
Diagnostic
(IDEDiagnosticIds.RemoveUnnecessaryParenthesesDiagnosticId, text, startLocation: new LinePosition(line, column));
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (5)
1128
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p1").WithLocation(5, 15),
1129
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p2").WithLocation(5, 23),
1130
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p3").WithLocation(13, 23),
1131
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p4").WithLocation(13, 31),
1132
Diagnostic
(IDEDiagnosticIds.UnusedParameterDiagnosticId, "p5").WithLocation(19, 17));
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValueAssignmentTests.cs (1)
7191
Diagnostic
("IDE0059"));
Microsoft.CodeAnalysis.Test.Utilities (2)
TestBase.cs (1)
336
return TestHelpers.
Diagnostic
(
TestHelpers.cs (1)
135
return
Diagnostic
(
Microsoft.CodeAnalysis.UnitTests (8)
Analyzers\AnalyzerConfigTests.cs (8)
1755
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig1, /.globalconfig2").WithLocation(1, 1)
1776
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "/path/to/file1.cs", "/.globalconfig1, /.globalconfig2").WithLocation(1, 1)
1965
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "/path/to/file1.cs", "/.globalconfig1, /.globalconfig2").WithLocation(1, 1)
1984
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig1, /.globalconfig2").WithLocation(1, 1)
2076
Diagnostic
("InvalidSeverityInAnalyzerConfig").WithArguments("cs000", "foo", "<Global Config>").WithLocation(1, 1)
2080
Diagnostic
("InvalidSeverityInAnalyzerConfig").WithArguments("cs001", "bar", "<Global Config>").WithLocation(1, 1)
2292
Diagnostic
("InvalidGlobalSectionName", isSuppressed: false).WithArguments(sectionName, "/.editorconfig").WithLocation(1, 1)
2544
Diagnostic
("MultipleGlobalAnalyzerKeys").WithArguments("option1", "Global Section", "/.globalconfig3, /.globalconfig4").WithLocation(1, 1)