Catel.Test.MVVM.CompositeCommandFacts.TheRegisterAndUnregisterActionFunctionality.RegisteredActionsCanBeInvoked C# (CSharp) Method

RegisteredActionsCanBeInvoked() private method

private RegisteredActionsCanBeInvoked ( ) : void
return void
            public void RegisteredActionsCanBeInvoked()
            {
                var invoked = false;
                Action action = () => invoked = true;

                var compositeCommand = new CompositeCommand();

                compositeCommand.RegisterAction(action);

                compositeCommand.Execute(null);

                Assert.IsTrue(invoked);
            }