public void EqualsIsImplemented() { ElectricCurrentGradient v = ElectricCurrentGradient.FromAmperesPerSecond(1); Assert.True(v.Equals(ElectricCurrentGradient.FromAmperesPerSecond(1), ElectricCurrentGradient.FromAmperesPerSecond(AmperesPerSecondTolerance))); Assert.False(v.Equals(ElectricCurrentGradient.Zero, ElectricCurrentGradient.FromAmperesPerSecond(AmperesPerSecondTolerance))); }
public void EqualsReturnsFalseOnNull() { ElectricCurrentGradient amperepersecond = ElectricCurrentGradient.FromAmperesPerSecond(1); Assert.False(amperepersecond.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { ElectricCurrentGradient amperepersecond = ElectricCurrentGradient.FromAmperesPerSecond(1); Assert.False(amperepersecond.Equals(new object())); }