public void TestMapInverseShouldReturnDescendingValues(int?value, byte red, byte green, byte blue)
        {
            _map = new IntegerToColorMap(-10, 10, _colorPalette.Colors, SortOrder.Descending);
            var color  = new Color(red, green, blue);
            var result = _map.MapInverse(color);

            Assert.That(result, Is.EqualTo(value));
        }
        public void SetUp()
        {
            _colorPalette = new ColorPaletteBuilder()
                            .WithColor(Color.FromRgb(255, 0, 0))
                            .WithColor(Color.FromRgb(0, 255, 0))
                            .WithColor(Color.FromRgb(0, 0, 255))
                            .Build();

            _map = new IntegerToColorMap(-10, 10, _colorPalette.Colors, SortOrder.Ascending);
        }