public void TestMapShouldReturnCorrectValues(int?value, byte red, byte green, byte blue) { var color = new Color(red, green, blue); var result = _map.Map(value); Assert.That(result, Is.EqualTo(color)); }
public void TestMapShouldReturnDescendingValues(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.Map(value); Assert.That(result, Is.EqualTo(color)); }