From fadd2327de79764d3f2c8d0920428e52ffd88e97 Mon Sep 17 00:00:00 2001 From: Martin Strecker Date: Tue, 17 Jan 2023 16:43:30 +0100 Subject: [PATCH] Fix FP --- .../TestCases/TestMethodShouldContainAssertion.Custom.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzers/tests/SonarAnalyzer.UnitTest/TestCases/TestMethodShouldContainAssertion.Custom.cs b/analyzers/tests/SonarAnalyzer.UnitTest/TestCases/TestMethodShouldContainAssertion.Custom.cs index 982c4c2dc55..0867087d968 100644 --- a/analyzers/tests/SonarAnalyzer.UnitTest/TestCases/TestMethodShouldContainAssertion.Custom.cs +++ b/analyzers/tests/SonarAnalyzer.UnitTest/TestCases/TestMethodShouldContainAssertion.Custom.cs @@ -64,7 +64,7 @@ public class BaseTest public class DerivedTest : BaseTest { [TestMethod] - public void Derived() // Noncompliant FP: The overridden method needs to be annotated because Roslyn does not respect AttributeUsage.Inherited in ISymbol.GetAttributes + public void Derived() // Compliant { CustomAssertionMethod(); }