示例#1
0
        public void Render_NoArgs_Rendered()
        {
            try
            {
                using (var output = new StringWriter())
                {
                    Console.SetOut(output);

                    var target = new GraphicSystem();
                    target.Initialize();

                    target.Draw(5, 10, '1'.Blue());
                    target.Render();

                    target.Draw(5, 10, '2'.Red());
                    target.Render();
                }
            }
            catch (IOException)
            {
                // Is runnning in a no console environment?
            }
        }