Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
        public void EqualsReturnsFalseOnNull()
        {
            Luminance candelapersquaremeter = Luminance.FromCandelaPerSquareMeters(1);

            Assert.False(candelapersquaremeter.Equals(null));
        }
Exemplo n.º 3
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            Luminance candelapersquaremeter = Luminance.FromCandelaPerSquareMeters(1);

            Assert.False(candelapersquaremeter.Equals(new object()));
        }