public void ActionCommand_ExecuteInvokeAction_WhenActionParameterIsNotNull()
        {
            bool invoked = false;

            Action<object> action = obj => invoked = true;

            var command = new ActionCommand(action);
            command.Execute(null);

            Assert.IsTrue(invoked);
        }
        public void ActionCommand_ExecuteOverloadInvokeAction_WhenParameterIsNotNull()
        {
            bool invoked = false;

            Action<object> action = obj =>
            {
                Assert.IsNotNull(obj);
                invoked = true;
            };

            var command = new ActionCommand(action);
            command.Execute(new object());

            Assert.IsTrue(invoked);
        }