Skip to content

Commit 83534b4

Browse files
authored
Merge pull request #2629 from comintern/next
Adjust test to account for new functionality.
2 parents 71226ac + 19108fe commit 83534b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

RubberduckTests/Inspections/ProcedureNotUsedInspectionTests.cs

Lines changed: 3 additions & 2 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,7 +167,7 @@ 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
172173
const string inputCode1 =
@@ -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(0, inspectionResults.Count());
199+
Assert.AreEqual(1, inspectionResults.Count(result => result.Target.DeclarationType == DeclarationType.Procedure));
199200
}
200201

201202
[TestMethod]

0 commit comments

Comments
 (0)