public void ShouldReturnTrueWhenOtherAsObjectIsEqual() { var color = new ColorHSL(1, 2, 3); var other = new ColorHSL(1, 2, 3); Assert.True(color.Equals((object)other)); }
public void ShouldReturnFalseWhenOtherAsObjectIsNotEqual() { var color = new ColorHSL(1, 2, 3); var other = new ColorHSL(3, 2, 1); Assert.False(color.Equals((object)other)); }
public void ShouldReturnFalseWhenOtherAsObjectIsNull() { var color = new ColorHSL(1, 2, 3); Assert.False(color.Equals((object)null)); }