Skip to content

Commit ef93b9f

Browse files
pavel-mikula-sonarsourceCorniel
authored andcommitted
Rename
1 parent ab8a8cb commit ef93b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

analyzers/src/SonarAnalyzer.Common/Helpers/UnitTestHelper.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static bool IsTestMethod(this IMethodSymbol method) =>
9191
: method.AnyAttributeDerivesFromOrImplementsAny(KnownTestMethodAttributes);
9292

9393
public static bool IsIgnoredTestMethod(this IMethodSymbol method) =>
94-
method.IsMsTestOrNUnitTestIgnored()
94+
method.HasIgnoredAttribute()
9595
|| method.FindXUnitTestAttribute().NamedArguments.Any(arg => arg.Key == "Skip");
9696

9797
public static bool HasExpectedExceptionAttribute(this IMethodSymbol method) =>
@@ -131,6 +131,6 @@ private static bool IsTestAttributeWithExpectedResult(AttributeData a) =>
131131
private static bool IsXunitTestMethod(this IMethodSymbol methodSymbol) =>
132132
methodSymbol.AnyAttributeDerivesFromAny(KnownTestMethodAttributesOfxUnit);
133133

134-
private static bool IsMsTestOrNUnitTestIgnored(this IMethodSymbol method) =>
134+
private static bool HasIgnoredAttribute(this IMethodSymbol method) =>
135135
method.GetAttributes().Any(a => a.AttributeClass.IsAny(KnownIgnoreAttributes));
136136
}

0 commit comments

Comments
 (0)