public void FillForegroundLine() { var buffer = new ConsoleBuffer(3); buffer.FillForegroundLine(Line.Vertical(1, 0, 3), Red, '|'); buffer.FillForegroundLine(Line.Horizontal(0, 1, 3), Green, '-'); var c0 = new ConsoleChar(); var cr = new ConsoleChar { Char = '|', ForegroundColor = Red }; var cg = new ConsoleChar { Char = '-', ForegroundColor = Green }; buffer.GetLine(0).Should().Equal(c0, cr, c0); buffer.GetLine(1).Should().Equal(cg, cg, cg); buffer.GetLine(2).Should().Equal(c0, cr, c0); }
public void FillForegroundLine () { var buffer = new ConsoleBuffer(3); buffer.FillForegroundLine(Line.Vertical(1, 0, 3), Red, '|'); buffer.FillForegroundLine(Line.Horizontal(0, 1, 3), Green, '-'); var c0 = new ConsoleChar(); var cr = new ConsoleChar { Char = '|', ForegroundColor = Red }; var cg = new ConsoleChar { Char = '-', ForegroundColor = Green }; buffer.GetLine(0).Should().Equal(c0, cr, c0); buffer.GetLine(1).Should().Equal(cg, cg, cg); buffer.GetLine(2).Should().Equal(c0, cr, c0); }