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>]"); }
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>\]"); }