Skip to content

Commit 4de68ab

Browse files
committed
fixed broken test (1 left)
1 parent 36bfaf2 commit 4de68ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RubberduckTests/Inspections/ProcedureNotUsedInspectionTests.cs

Lines changed: 4 additions & 4 deletions
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;
@@ -166,11 +167,10 @@ Private Sub IClass1_DoSomething(ByVal a As Integer)
166167

167168
[TestMethod]
168169
[TestCategory("Inspections")]
169-
public void ProcedureNotUsed_DoesNotReturnResult_EventImplementation()
170+
public void ProcedureNotUsed_HandlerIsIgnoredForUnraisedEvent()
170171
{
171172
//Input
172-
const string inputCode1 =
173-
@"Public Event Foo(ByVal arg1 As Integer, ByVal arg2 As String)";
173+
const string inputCode1 = @"Public Event Foo(ByVal arg1 As Integer, ByVal arg2 As String)";
174174
const string inputCode2 =
175175
@"Private WithEvents abc As Class1
176176
@@ -195,7 +195,7 @@ Private Sub abc_Foo(ByVal arg1 As Integer, ByVal arg2 As String)
195195
var inspection = new ProcedureNotUsedInspection(parser.State);
196196
var inspectionResults = inspection.GetInspectionResults();
197197

198-
Assert.AreEqual(0, inspectionResults.Count());
198+
Assert.AreEqual(0, inspectionResults.Count(result => result.Target.DeclarationType == DeclarationType.Procedure));
199199
}
200200

201201
[TestMethod]

0 commit comments

Comments
 (0)