File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Rubberduck.UnitTesting/UnitTesting Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments