Example #1
0
        public void CommandDispatch_ForConcreteCommand_ShouldShowFullHelp(params string[] args)
        {
            var commandC = new TestCommand()
                           .IsCommand(CommandC, DescriptionC)
                           .HasLongDescription(LondDescriptionC)
                           .HasAdditionalArguments(0, "<remaining> <args>")
                           .HasOption("o|option=", "option description", v => { });

            commands.Add(commandC);

            CommandDispatcher.AssertOutputContainsInOrder(
                commands,
                args,
                new[] { CommandC, DescriptionC, LondDescriptionC, commandC.RemainingArgumentsHelpText, "-o", "--option", "option description" });
        }
Example #2
0
 public void CommandDispatch_ForAllCommands_ShouldShowDigestHelp(params string[] args)
 {
     CommandDispatcher.AssertOutputContainsInOrder(commands, args, new [] { CommandA, DescriptionA, CommandB, DescriptionB });
 }