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