private static void Main(string[] args) { var console = new CommandEngine.Console(); console.Output += value => WriteLine(FormatOutput(value)); console.Add(new PrintCommand()); while (true) { try { console.Parse(ReadLine()); } catch (Exception e) { WriteLine(FormatOutput(e.Message)); } } }
public void CleanUpTest() { testConsole = null; }
public void InitializeTest() { testConsole = new CommandEngine.Console(); testConsole.Output += (output) => System.Console.WriteLine(output); }