public void TestMapInverseShouldReturnCorrectValues(bool?value, byte red, byte green, byte blue) { var color = new Color(red, green, blue); var result = _map.MapInverse(color); Assert.That(result, Is.EqualTo(value)); }
public void TestMapInverseShouldReturnDescendingValues(bool?value, byte red, byte green, byte blue) { _map = new BooleanToColorMap(_colorPalette.Colors, SortOrder.Descending); var color = new Color(red, green, blue); var result = _map.MapInverse(color); Assert.That(result, Is.EqualTo(value)); }