Catel.Test.MVVM.CompositeCommandFacts.TheRegisterGenericActionMethod.RegistersActionForExecution C# (CSharp) Метод

RegistersActionForExecution() приватный Метод

private RegistersActionForExecution ( ) : void
Результат void
            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);
            }
        }
CompositeCommandFacts.TheRegisterGenericActionMethod