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