public void PreventsExecutionOfPartiallyExecutableCommand(bool checkCanExecuteOfAllCommandsToDetermineCanExecuteForCompositeCommand, bool expectedValue)
{
var compositeCommand = new CompositeCommand();
compositeCommand.RegisterCommand(new Command(() => { }, () => false));
compositeCommand.RegisterCommand(new Command(() => { }, () => true));
compositeCommand.CheckCanExecuteOfAllCommandsToDetermineCanExecuteForCompositeCommand = checkCanExecuteOfAllCommandsToDetermineCanExecuteForCompositeCommand;
Assert.AreEqual(expectedValue, ((ICatelCommand)compositeCommand).CanExecute(null));
}
}