public void InvalidArguments()
        {
            var buffer = new ConsoleBuffer(42);
            IList <ConsoleColor>  colorMap        = ColorMaps.Dark;
            IList <ConsoleColor>  colorMapInvalid = new ConsoleColor[15];
            ApplyColorMapCallback processChar     = (ref ConsoleChar c) => { };

            new Action(() => buffer.LineCharRenderer = null).Should().Throw <ArgumentNullException>()
            .Which.ParamName.Should().Be("value");
            new Action(() => buffer.ApplyColorMap(new Rect(), null, processChar)).Should().Throw <ArgumentNullException>()
            .Which.ParamName.Should().Be(nameof(colorMap));
            new Action(() => buffer.ApplyColorMap(new Rect(), colorMapInvalid, processChar)).Should().Throw <ArgumentException>()
            .Which.ParamName.Should().Be(nameof(colorMap));
            new Action(() => buffer.ApplyColorMap(new Rect(), colorMap, null)).Should().Throw <ArgumentNullException>()
            .Which.ParamName.Should().Be(nameof(processChar));
        }
        public void InvalidArguments ()
        {
            var buffer = new ConsoleBuffer(42);
            IList<ConsoleColor> colorMap = ColorMaps.Dark;
            IList<ConsoleColor> colorMapInvalid = new ConsoleColor[15];
            ApplyColorMapCallback processChar = (ref ConsoleChar c) => { };

            new Action(() => buffer.LineCharRenderer = null).ShouldThrow<ArgumentNullException>()
                .Which.ParamName.Should().Be("value");
            new Action(() => buffer.ApplyColorMap(new Rect(), null, processChar)).ShouldThrow<ArgumentNullException>()
                .Which.ParamName.Should().Be(nameof(colorMap));
            new Action(() => buffer.ApplyColorMap(new Rect(), colorMapInvalid, processChar)).ShouldThrow<ArgumentException>()
                .Which.ParamName.Should().Be(nameof(colorMap));
            new Action(() => buffer.ApplyColorMap(new Rect(), colorMap, null)).ShouldThrow<ArgumentNullException>()
                .Which.ParamName.Should().Be(nameof(processChar));
        }