public void ActionCommand_CanExecuteOverloadExecute_WhenPredicateisFalse() { var command = new ActionCommand(obj => { }, obj => (int)obj == 1); Assert.IsFalse(command.CanExecute(2)); }
public void ActionCommand_CanExecuteIsTrue_TruePredicateIsNull() { var command = new ActionCommand(obj => { }); Assert.IsTrue(command.CanExecute(null)); }