public void ToHSVWithAccentReturnsCorrectValues() { var accent = new Color.RGB(240, 150, 9); var hsv = accent.ToHSV(); Assert.AreEqual(new Color.HSV(36.6, 0.963, 0.941), hsv); }
public void ToHSVWithBlackReturnsCorrectValues() { var accent = new Color.RGB(0, 0, 0); var hsv = accent.ToHSV(); Assert.AreEqual(new Color.HSV(0, 0, 0), hsv); }
public void ToHSVWithWhiteReturnsCorrectValues() { var accent = new Color.RGB(255, 255, 255); var hsv = accent.ToHSV(); Assert.AreEqual(new Color.HSV(0, 0, 1), hsv); }