public AnsiTestConsole(bool trimEnd = true) : base(trimEnd)
        {
            SpectreTestConsole = new SpectreTestConsole();

            // capture Spectre output to TestConsoleWriter
            _forwardingConsole = new AnsiConsoleForwardingConsole(SpectreTestConsole, base.Out);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Runs the command application.
        /// </summary>
        /// <param name="args">The arguments.</param>
        /// <returns>The result.</returns>
        public CommandAppResult Run(params string[] args)
        {
            var console = new TestConsole().Width(int.MaxValue);

            return(Run(args, console));
        }