예제 #1
0
 public void CanExecuteOverloadExecutesTruePredicate()
 {
     RelayCommand command = new RelayCommand(x => { }, y => (int)y == 1);
     Assert.IsTrue(command.CanExecute(1));
 }
예제 #2
0
 public void CanExecuteIsTrueByDefault()
 {
     RelayCommand command = new RelayCommand(x => { });
     Assert.IsTrue(command.CanExecute(null));
 }