public void ShouldReturnTheCorrectValueWhenOtherIsHigher() { var color = new ColorHSL(0.5, 0.5, 0.5); var other = new ColorHSL(1.0, 1.0, 1.0); Assert.Equal(-1, color.CompareTo(other)); }
public void ShouldReturnTheCorrectValueWhenOtherIsEqual() { var color = new ColorHSL(1, 2, 3); Assert.Equal(0, color.CompareTo(color)); }