File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Rubberduck.Core/UI/UnitTesting Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ public bool CanExecuteIgnoreSelectedTests(object obj)
256
256
257
257
return false ;
258
258
}
259
+
259
260
public bool CanExecuteUnignoreSelectedTests ( object obj )
260
261
{
261
262
if ( ! Model . IsBusy && obj is IList viewModels && viewModels . Count > 0 )
@@ -273,12 +274,14 @@ public bool CanExecuteIgnoreGroupCommand(object obj)
273
274
274
275
return groupItems . Cast < TestMethodViewModel > ( ) . Count ( test => test . Method . IsIgnored ) != groupItems . Count ;
275
276
}
277
+
276
278
public bool CanExecuteUnignoreGroupCommand ( object obj )
277
279
{
278
280
var groupItems = MouseOverGroup ? . Items
279
- ?? GroupContainingSelectedTest ( MouseOverTest ) . Items ;
280
-
281
- return groupItems . Cast < TestMethodViewModel > ( ) . Any ( test => test . Method . IsIgnored ) ;
281
+ ?? GroupContainingSelectedTest ( MouseOverTest ) ? . Items ;
282
+
283
+ return groupItems != null
284
+ && groupItems . Cast < TestMethodViewModel > ( ) . Any ( test => test . Method . IsIgnored ) ;
282
285
}
283
286
284
287
#region Commands
You can’t perform that action at this time.
0 commit comments