public void RegistersActionForExecution()
{
var compositeCommand = new CompositeCommand();
bool executed = false;
var action = new Action<object>(obj => executed = true);
compositeCommand.RegisterAction(action);
compositeCommand.Execute();
Assert.IsTrue(executed);
}
}