diff --git a/analyzers/tests/SonarAnalyzer.UnitTest/TestCases/UnusedPrivateMember.CSharp8.cs b/analyzers/tests/SonarAnalyzer.UnitTest/TestCases/UnusedPrivateMember.CSharp8.cs index 9b99aec310e..f3227a150f5 100644 --- a/analyzers/tests/SonarAnalyzer.UnitTest/TestCases/UnusedPrivateMember.CSharp8.cs +++ b/analyzers/tests/SonarAnalyzer.UnitTest/TestCases/UnusedPrivateMember.CSharp8.cs @@ -153,6 +153,11 @@ public void SomeMethod() public class Repro_8342 { [Private1] private protected void APrivateProtectedMethod() { } + [Public1, Private2] public void APublicMethodWithMultipleAttributes1() { } + [Public1][Private2] public void APublicMethodWithMultipleAttributes2() { } private class Private1Attribute : Attribute { } // Noncompliant: FP: attribute used on a private protected method + private class Private2Attribute : Attribute { } // Noncompliant: FP: attribute used on a public method + private class Private3Attribute : Attribute { } // Noncompliant: FP: attribute used on a public method + public class Public1Attribute : Attribute { } // Compliant: public }