public void EqualsIsImplemented() { MagneticField v = MagneticField.FromTeslas(1); Assert.True(v.Equals(MagneticField.FromTeslas(1), MagneticField.FromTeslas(TeslasTolerance))); Assert.False(v.Equals(MagneticField.Zero, MagneticField.FromTeslas(TeslasTolerance))); }
public void EqualsReturnsFalseOnNull() { MagneticField tesla = MagneticField.FromTeslas(1); Assert.False(tesla.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { MagneticField tesla = MagneticField.FromTeslas(1); Assert.False(tesla.Equals(new object())); }