File tree 1 file changed +2
-2
lines changed
analyzers/src/SonarAnalyzer.Common/Helpers
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public static bool IsTestMethod(this IMethodSymbol method) =>
91
91
: method . AnyAttributeDerivesFromOrImplementsAny ( KnownTestMethodAttributes ) ;
92
92
93
93
public static bool IsIgnoredTestMethod ( this IMethodSymbol method ) =>
94
- method . IsMsTestOrNUnitTestIgnored ( )
94
+ method . HasIgnoredAttribute ( )
95
95
|| method . FindXUnitTestAttribute ( ) . NamedArguments . Any ( arg => arg . Key == "Skip" ) ;
96
96
97
97
public static bool HasExpectedExceptionAttribute ( this IMethodSymbol method ) =>
@@ -131,6 +131,6 @@ private static bool IsTestAttributeWithExpectedResult(AttributeData a) =>
131
131
private static bool IsXunitTestMethod ( this IMethodSymbol methodSymbol ) =>
132
132
methodSymbol . AnyAttributeDerivesFromAny ( KnownTestMethodAttributesOfxUnit ) ;
133
133
134
- private static bool IsMsTestOrNUnitTestIgnored ( this IMethodSymbol method ) =>
134
+ private static bool HasIgnoredAttribute ( this IMethodSymbol method ) =>
135
135
method . GetAttributes ( ) . Any ( a => a . AttributeClass . IsAny ( KnownIgnoreAttributes ) ) ;
136
136
}
You can’t perform that action at this time.
0 commit comments