Ejemplo n.º 1
0
        public void ShouldOutputHelpInformation()
        {
            var types = new List<Type> { FooCommandType, BazQuxCommandType, FooBarCommandType };
            var writer = new StringWriter();
            var helpCommand = new HelpCommand(types, writer);

            helpCommand.Execute(new string[0]);
            Assert.Equal("Usage: appharbor COMMAND [command-options]\r\n\r\nAvailable commands:\r\n\r\n  bar foo [bar]               #  Lorem Ipsum m**********r\r\n  foo [bar]                   #  Lorem Ipsum m**********r\r\n  qux baz [quz]               #  Ipsum lol (\"quux\")\r\n\r\nCommon options:\r\n  -h, --help                 Show command help\r\n",
                writer.ToString());
        }