Skip to content

Commit 9f9fb15

Browse files
committed
fixed AddsTestModule test
1 parent 9040ddc commit 9f9fb15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RubberduckTests/Commands/UnitTestCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ public void AddsTestModule()
320320
addTestModuleCommand.Execute(null);
321321

322322
// mock suite auto-assigns "TestModule1" to the first component when we create the mock
323-
var module = parser.State.DeclarationFinder.FindStdModule("TestModule2");
323+
var project = parser.State.DeclarationFinder.FindProject("TestProject1");
324+
var module = parser.State.DeclarationFinder.FindStdModule("TestModule2", project);
324325
Assert.IsTrue(module.Annotations.Any(a => a.AnnotationType == AnnotationType.TestModule));
325326
}
326327

0 commit comments

Comments
 (0)