Ejemplo n.º 1
0
        public void CharLineCharRendererSimple()
        {
            var buffer = new ConsoleBuffer(6)
            {
                LineCharRenderer = LineCharRenderer.Char('*')
            };

            buffer.DrawHorizontalLine(0, 1, 6, null, LineWidth.Double);
            buffer.DrawHorizontalLine(1, 3, 4);
            buffer.DrawVerticalLine(2, 0, 5);
            buffer.DrawVerticalLine(4, 1, 3, null, LineWidth.Double);

            GetRenderedText(buffer).Should().BeLines(
                "  *   ",
                "******",
                "  * * ",
                " **** ",
                "  *   ");
        }
Ejemplo n.º 2
0
 public void CharLineCharRendererEmpty()
 {
     LineCharRenderer.Char('*').GetChar(LineChar.None).Should().Be('\0');
 }
        public void CharLineCharRendererEmpty()
        {
            var none = LineChar.None;

            LineCharRenderer.Char('*').GetChar(none, none, none, none, none).Should().Be('\0');
        }