public void EqualsIsImplemented() { Illuminance v = Illuminance.FromLux(1); Assert.True(v.Equals(Illuminance.FromLux(1), Illuminance.FromLux(LuxTolerance))); Assert.False(v.Equals(Illuminance.Zero, Illuminance.FromLux(LuxTolerance))); }
public void EqualsReturnsFalseOnNull() { Illuminance lux = Illuminance.FromLux(1); Assert.False(lux.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { Illuminance lux = Illuminance.FromLux(1); Assert.False(lux.Equals(new object())); }