Catel.Test.MVVM.CompositeCommandFacts.TheCanExecuteState.CanExecuteEmptyCommandWithAtLeastOneMustBeExecutable C# (CSharp) Method

CanExecuteEmptyCommandWithAtLeastOneMustBeExecutable() private method

private CanExecuteEmptyCommandWithAtLeastOneMustBeExecutable ( bool atLeastOneMustBeExecutable, bool expectedValue ) : void
atLeastOneMustBeExecutable bool
expectedValue bool
return void
            public void CanExecuteEmptyCommandWithAtLeastOneMustBeExecutable(bool atLeastOneMustBeExecutable, bool expectedValue)
            {
                var compositeCommand = new CompositeCommand();
                compositeCommand.AtLeastOneMustBeExecutable = atLeastOneMustBeExecutable;

                Assert.AreEqual(expectedValue, ((ICatelCommand)compositeCommand).CanExecute(null));
            }