public void ApplyColorMap() { var buffer = new ConsoleBuffer(2); buffer.ApplyBackgroundColorMap(new Rect(0, 0, 1, 1), ColorMaps.Invert); buffer.ApplyForegroundColorMap(new Rect(1, 0, 1, 1), ColorMaps.Invert); buffer.GetLine(0).Should().Equal( new ConsoleChar { BackgroundColor = White }, new ConsoleChar { ForegroundColor = White }); }
public void ApplyColorMap () { var buffer = new ConsoleBuffer(2); buffer.ApplyBackgroundColorMap(new Rect(0, 0, 1, 1), ColorMaps.Invert); buffer.ApplyForegroundColorMap(new Rect(1, 0, 1, 1), ColorMaps.Invert); buffer.GetLine(0).Should().Equal( new ConsoleChar { BackgroundColor = White }, new ConsoleChar { ForegroundColor = White }); }