public bool Equals(xyYColor other) { if (other == null) { throw new ArgumentNullException("other"); } return(x.Equals(other.x) && y.Equals(other.y) && Luminance.Equals(other.Luminance)); }
public void EqualsReturnsFalseOnNull() { Luminance candelapersquaremeter = Luminance.FromCandelaPerSquareMeters(1); Assert.False(candelapersquaremeter.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { Luminance candelapersquaremeter = Luminance.FromCandelaPerSquareMeters(1); Assert.False(candelapersquaremeter.Equals(new object())); }