public void CommandDispatch_WithMoreThanRequiredParamentes_ShouldWorkWithErrors()
        {
            var command = new TestCommand()
                          .IsCommand("command")
                          .HasAdditionalArguments(5);

            var args = new[] { "command", "1", "2", "3", "4", "5", "6", "7", "8" };

            CommandDispatcher.AssertWorksWithErrors(command, args, "Extra parameters specified: 6, 7, 8");
        }
        public void CommandDispatch_WithLessThanRequiredParamentes_ShouldWorkWithErrors()
        {
            var command = new TestCommand()
                          .IsCommand("command")
                          .HasAdditionalArguments(5);

            var args = new[] { "command" };

            CommandDispatcher.AssertWorksWithErrors(command, args, "Invalid number of arguments-- expected 5 more.");
        }
        public void CommandDispatch_WithoutRequiredParameters_ShouldGiveErrorOutput()
        {
            var command = new TestCommand()
                          .IsCommand("command")
                          .HasRequiredOption <int>("value=", "The integer value", v => { });

            var args = new[] { "command" };

            CommandDispatcher.AssertWorksWithErrors(command, args, "Missing option: ");
        }