Skip to content

Commit 1633f44

Browse files
committed
Fix typo.
1 parent 42cc5f8 commit 1633f44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IDisposableAnalyzers/Helpers/TestFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ internal static bool TryGetTearDownMethod(AttributeSyntax setupAttribute, Semant
6060

6161
var attributeType = semanticModel.GetTypeInfoSafe(setupAttribute, cancellationToken).Type;
6262

63-
var teardOwnAttributeType = attributeType == KnownSymbol.NUnitSetUpAttribute
63+
var tearDownAttributeType = attributeType == KnownSymbol.NUnitSetUpAttribute
6464
? KnownSymbol.NUnitTearDownAttribute
6565
: KnownSymbol.NUnitOneTimeTearDownAttribute;
6666
foreach (var member in typeDeclarationSyntax.Members)
6767
{
6868
if (member is MethodDeclarationSyntax methodDeclaration)
6969
{
70-
if (Attribute.TryFind(methodDeclaration, teardOwnAttributeType, semanticModel, cancellationToken, out _))
70+
if (Attribute.TryFind(methodDeclaration, tearDownAttributeType, semanticModel, cancellationToken, out _))
7171
{
7272
result = methodDeclaration;
7373
return true;

0 commit comments

Comments
 (0)