public void ShouldPrintHelpForExistingCommand()
        {
            var speak = new SpeakCommand(commandOutputProvider);

            commandLocator.Find("speak").Returns(speak);
            helpCommand.Execute("speak");

            output.ToString()
            .Should()
            .Contain("Usage: Octo.Tests speak [<options>]");
        }
Ejemplo n.º 2
0
        public void ShouldPrintHelpForExistingCommand()
        {
            var speak = new SpeakCommand(commandOutputProvider);

            commandLocator.Find("speak").Returns(speak);
            helpCommand.Execute("speak");

            output.ToString()
            .Should()
            .MatchRegex(@"Usage: (octo|testhost) speak \[<options>\]");
        }