Beispiel #1
0
        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));
                }
            }
        }
Beispiel #2
0
 public void CleanUpTest()
 {
     testConsole = null;
 }
Beispiel #3
0
 public void InitializeTest()
 {
     testConsole         = new CommandEngine.Console();
     testConsole.Output += (output) => System.Console.WriteLine(output);
 }