public void TestMapInverseShouldReturnCorrectValues(string date, byte red, byte green, byte blue)
        {
            _map = new DateTimeToColorMap(
                DateTime.MinValue,
                DateTime.MaxValue,
                _colorPalette.Colors,
                SortOrder.Descending);
            var color  = new Color(red, green, blue);
            var value  = DateTime.Parse(date);
            var result = _map.MapInverse(color);

            Assert.That(((DateTime)result).Date, Is.EqualTo(value.Date));
        }
        public void SetUp()
        {
            _nullColor = new Color(127, 127, 127);

            _colorPalette = new ColorPaletteBuilder()
                            .WithColor(Color.FromRgb(255, 0, 0))
                            .WithColor(Color.FromRgb(0, 255, 0))
                            .WithColor(Color.FromRgb(0, 0, 255))
                            .Build();

            _map = new DateTimeToColorMap(
                DateTime.MinValue,
                DateTime.MaxValue,
                _colorPalette.Colors,
                SortOrder.Ascending);
        }