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