Пример #1
0
        public void ActionCommand_CanExecuteOverloadExecute_WhenPredicateisFalse()
        {
            var command = new ActionCommand(obj => { }, obj => (int)obj == 1);

            Assert.IsFalse(command.CanExecute(2));
        }
Пример #2
0
        public void ActionCommand_CanExecuteIsTrue_TruePredicateIsNull()
        {
            var command = new ActionCommand(obj => { });

            Assert.IsTrue(command.CanExecute(null));
        }