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