Skip to content

Commit 48573d5

Browse files
committed
Make test more specific.
1 parent 52489a5 commit 48573d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RubberduckTests/Inspections/ProcedureNotUsedInspectionTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Rubberduck.Inspections;
66
using Rubberduck.Inspections.QuickFixes;
77
using Rubberduck.Inspections.Resources;
8+
using Rubberduck.Parsing.Symbols;
89
using Rubberduck.Parsing.VBA;
910
using Rubberduck.VBEditor.Application;
1011
using Rubberduck.VBEditor.Events;
@@ -195,7 +196,7 @@ Private Sub abc_Foo(ByVal arg1 As Integer, ByVal arg2 As String)
195196
var inspection = new ProcedureNotUsedInspection(parser.State);
196197
var inspectionResults = inspection.GetInspectionResults();
197198

198-
Assert.AreEqual(1, inspectionResults.Count());
199+
Assert.AreEqual(1, inspectionResults.Count(result => result.Target.DeclarationType == DeclarationType.Procedure));
199200
}
200201

201202
[TestMethod]

0 commit comments

Comments
 (0)