Skip to content

Commit 532fa46

Browse files
committed
Band-Aid Design-Mode query for CanRun evaluation of UnitTests
1 parent 9716193 commit 532fa46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rubberduck.UnitTesting/UnitTesting/TestEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ internal class TestEngine : ITestEngine
3737
private readonly List<TestMethod> LastRun = new List<TestMethod>();
3838
private readonly Dictionary<TestOutcome, List<TestMethod>> resultsByOutcome = new Dictionary<TestOutcome, List<TestMethod>>();
3939
public IEnumerable<TestMethod> Tests { get; private set; }
40-
public bool CanRun => !_vbe.IsInDesignMode && AllowedRunStates.Contains(_state.Status);
40+
public bool CanRun => AllowedRunStates.Contains(_state.Status);// && !_vbe.IsInDesignMode;
4141
public bool CanRepeatLastRun => LastRun.Any();
4242

4343
private bool refreshBackoff;
@@ -126,7 +126,7 @@ public void RepeatLastRun()
126126

127127
private void RunInternal(IEnumerable<TestMethod> tests)
128128
{
129-
if (!CanRun)
129+
if (!CanRun || _vbe.IsInDesignMode)
130130
{
131131
return;
132132
}

0 commit comments

Comments
 (0)