@@ -66,7 +66,7 @@ public TestExplorerViewModel(ISelectionService selectionService,
66
66
67
67
NavigateCommand = new NavigateCommand ( selectionService ) ;
68
68
RunSingleTestCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteSingleTestCommand , CanExecuteSingleTest ) ;
69
- RunSelectedTestsCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteSelectedTestsCommand , CanExecuteSelectedTestsCommand ) ;
69
+ RunSelectedTestsCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteSelectedTestsCommand , CanExecuteSelectionCommand ) ;
70
70
RunSelectedGroupCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteRunSelectedGroupCommand , CanExecuteGroupCommand ) ;
71
71
CancelTestRunCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteCancelTestRunCommand , CanExecuteCancelTestRunCommand ) ;
72
72
ResetResultsCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteResetResultsCommand , CanExecuteResetResultsCommand ) ;
@@ -76,10 +76,10 @@ public TestExplorerViewModel(ISelectionService selectionService,
76
76
ExpandAllCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteExpandAll ) ;
77
77
IgnoreTestCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteIgnoreTestCommand ) ;
78
78
UnignoreTestCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteUnignoreTestCommand ) ;
79
- IgnoreGroupCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteIgnoreGroupCommand , CanIgnoreGroupCommand ) ;
80
- UnignoreGroupCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteUnignoreGroupCommand , CanUnignoreGroupCommand ) ;
81
- IgnoreSelectedTestsCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteIgnoreSelectedTestsCommand , CanExecuteSelectedTestsCommand ) ;
82
- UnignoreSelectedTestsCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteUnignoreSelectedTestsCommand , CanUnignoreSelectedTestsCommand ) ;
79
+ IgnoreGroupCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteIgnoreGroupCommand , CanExecuteGroupCommand ) ;
80
+ UnignoreGroupCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteUnignoreGroupCommand , CanExecuteGroupCommand ) ;
81
+ IgnoreSelectedTestsCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteIgnoreSelectedTestsCommand , CanExecuteSelectionCommand ) ;
82
+ UnignoreSelectedTestsCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteUnignoreSelectedTestsCommand , CanExecuteSelectionCommand ) ;
83
83
84
84
RewritingManager = rewritingManager ;
85
85
AnnotationUpdater = annotationUpdater ;
@@ -329,31 +329,16 @@ private bool CanExecuteSingleTest(object obj)
329
329
return ! Model . IsBusy && MouseOverTest != null ;
330
330
}
331
331
332
- private bool CanExecuteSelectedTestsCommand ( object obj )
332
+ private bool CanExecuteSelectionCommand ( object obj )
333
333
{
334
334
return ! Model . IsBusy && obj is IList viewModels && viewModels . Count > 0 ;
335
335
}
336
336
337
- private bool CanUnignoreSelectedTestsCommand ( object obj )
338
- {
339
- return true ;
340
- }
341
-
342
337
private bool CanExecuteGroupCommand ( object obj )
343
338
{
344
339
return ! Model . IsBusy && ( MouseOverTest != null || MouseOverGroup != null ) ;
345
340
}
346
341
347
- private bool CanIgnoreGroupCommand ( object obj )
348
- {
349
- return CanExecuteGroupCommand ( obj ) ;
350
- }
351
-
352
- private bool CanUnignoreGroupCommand ( object obj )
353
- {
354
- return CanExecuteGroupCommand ( obj ) ;
355
- }
356
-
357
342
private bool CanExecuteResetResultsCommand ( object obj )
358
343
{
359
344
return ! Model . IsBusy && Tests . OfType < TestMethodViewModel > ( ) . Any ( test => test . Result . Outcome != TestOutcome . Unknown ) ;
0 commit comments