private static void ConfigureHelpHandler(FakeApplicationBase app, CommandLineInterpreter commandLineInterpreter) { if (app._helpHandler == null) app._helpHandler = new HelpHandler(null, null, app.Config); app._helpHandler.Adorner = commandLineInterpreter.GetOptionNameAdorner(); }
public void ConfigurationShouldBeDescribed() { var interpreter = new CommandLineInterpreter(_posix); CommandDescriber.Describe(_posix, _console, _applicationName, CommandExecutionMode.CommandLine, interpreter.GetOptionNameAdorner()); var description = _consoleOutInterface.GetBuffer(); Console.WriteLine(description); Approvals.Verify(description); }