Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-mikula-sonarsource authored and Corniel committed Jul 30, 2023
1 parent ab8a8cb commit ef93b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzers/src/SonarAnalyzer.Common/Helpers/UnitTestHelper.cs
Expand Up @@ -91,7 +91,7 @@ internal static class UnitTestHelper
: method.AnyAttributeDerivesFromOrImplementsAny(KnownTestMethodAttributes);

public static bool IsIgnoredTestMethod(this IMethodSymbol method) =>
method.IsMsTestOrNUnitTestIgnored()
method.HasIgnoredAttribute()
|| method.FindXUnitTestAttribute().NamedArguments.Any(arg => arg.Key == "Skip");

public static bool HasExpectedExceptionAttribute(this IMethodSymbol method) =>
Expand Down Expand Up @@ -131,6 +131,6 @@ internal static class UnitTestHelper
private static bool IsXunitTestMethod(this IMethodSymbol methodSymbol) =>
methodSymbol.AnyAttributeDerivesFromAny(KnownTestMethodAttributesOfxUnit);

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

0 comments on commit ef93b9f

Please sign in to comment.