public void RaiseCanExecuteChangedTest()
{
var executed = false;
var canExecute = false;
var command = new DelegateCommand(() => executed = true, () => canExecute);
Assert.IsFalse(command.CanExecute(null));
canExecute = true;
Assert.IsTrue(command.CanExecute(null));
AssertHelper.CanExecuteChangedEvent(command, () => command.RaiseCanExecuteChanged());
Assert.IsFalse(executed);
}