Example #1
0
            public void Returns_False_When_CanExecute_Evaluates_To_False()
            {
                var command = new ArbitraryCommand(() => { }, (o) => false);

                Assert.IsFalse(command.CanExecute(null));
            }
Example #2
0
            public void Returns_True_When_No_Can_Execute_Function_Specified()
            {
                var command = new ArbitraryCommand(() => { });

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