We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f90058 commit 70bc54dCopy full SHA for 70bc54d
Rubberduck.Core/UI/Command/RunSelectedTestMethodCommand.cs
@@ -50,7 +50,8 @@ private Declaration FindDeclarationFromSelection()
50
51
private bool IsTestMethod(Declaration member)
52
{
53
- return member.DeclarationType == DeclarationType.Procedure
+ return member != null
54
+ && member.DeclarationType == DeclarationType.Procedure
55
&& member.Annotations.Any(parseTreeAnnotation =>
56
parseTreeAnnotation.Annotation is TestMethodAnnotation);
57
}
0 commit comments