Skip to content

Commit 7b60e98

Browse files
committed
Set InDesignMode on the VBE mock to true to enable the test engine tests.
1 parent d4f5021 commit 7b60e98

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

RubberduckTests/Mocks/MockVbeBuilder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ private Mock<IVBE> CreateVbeMock()
216216

217217
var commandBars = DummyCommandBars();
218218
vbe.SetupGet(m => m.CommandBars).Returns(() => commandBars);
219-
219+
220+
vbe.Setup(m => m.IsInDesignMode).Returns(true);
221+
220222
return vbe;
221223
}
222224

RubberduckTests/UnitTesting/EngineTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Public Sub TestMethod1()
4545
int refreshes = 0;
4646
engine.TestsRefreshed += (sender, args) => refreshes++;
4747
parser.Parse(new CancellationTokenSource());
48-
var status = state.Status;
4948
if (!engine.CanRun)
5049
{
5150
Assert.Inconclusive("Parser Error");

0 commit comments

Comments
 (0)