Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinAlpert committed Jul 2, 2023
1 parent 2568f6f commit 5f53de3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public override void Initialize(AnalysisContext context)
// FxCop compat: only analyze externally visible symbols by default.
if (!context.Options.MatchesConfiguredVisibility(Rule, field, context.Compilation) ||
field.ContainingType.IsSealed)
field.ContainingType is { TypeKind: TypeKind.Class, IsSealed: true })
{
return;
}
Expand All @@ -67,7 +67,7 @@ public override void Initialize(AnalysisContext context)
if (property.IsOverride ||
property.IsImplementationOfAnyInterfaceMember() ||
property.ContainingType.IsSealed)
property.ContainingType is { TypeKind: TypeKind.Class, IsSealed: true })
{
return;
}
Expand Down Expand Up @@ -98,7 +98,7 @@ public override void Initialize(AnalysisContext context)
if (methodSymbol.IsOverride ||
methodSymbol.IsImplementationOfAnyInterfaceMember() ||
methodSymbol.ContainingType.IsSealed)
methodSymbol.ContainingType is { TypeKind: TypeKind.Class, IsSealed: true })
{
return;
}
Expand Down

0 comments on commit 5f53de3

Please sign in to comment.