public static void TestRgbOutput( double hue, double saturation, double value, byte expectedRed, byte exptectedGreen, byte exptectedBlue) { var rgb = RgbHsvConversion.HsvToRgb(hue, saturation, value); rgb.Item1.Should().Be(expectedRed); rgb.Item2.Should().Be(exptectedGreen); rgb.Item3.Should().Be(exptectedBlue); }
public static void ValueOutOfRange_ThrowsArgumentOutOfRangeException() { Action act = () => RgbHsvConversion.HsvToRgb(0, 0, 2); act.Should().Throw <ArgumentOutOfRangeException>(); }