public void EqualsIsImplemented() { ElectricCurrentDensity v = ElectricCurrentDensity.FromAmperesPerSquareMeter(1); Assert.True(v.Equals(ElectricCurrentDensity.FromAmperesPerSquareMeter(1), ElectricCurrentDensity.FromAmperesPerSquareMeter(AmperesPerSquareMeterTolerance))); Assert.False(v.Equals(ElectricCurrentDensity.Zero, ElectricCurrentDensity.FromAmperesPerSquareMeter(AmperesPerSquareMeterTolerance))); }
public void EqualsReturnsFalseOnNull() { ElectricCurrentDensity amperepersquaremeter = ElectricCurrentDensity.FromAmperesPerSquareMeter(1); Assert.False(amperepersquaremeter.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { ElectricCurrentDensity amperepersquaremeter = ElectricCurrentDensity.FromAmperesPerSquareMeter(1); Assert.False(amperepersquaremeter.Equals(new object())); }