public void EqualsIsImplemented() { ForcePerLength v = ForcePerLength.FromNewtonsPerMeter(1); Assert.True(v.Equals(ForcePerLength.FromNewtonsPerMeter(1))); Assert.False(v.Equals(ForcePerLength.Zero)); }
public void EqualsReturnsFalseOnNull() { ForcePerLength newtonpermeter = ForcePerLength.FromNewtonsPerMeter(1); Assert.False(newtonpermeter.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { ForcePerLength newtonpermeter = ForcePerLength.FromNewtonsPerMeter(1); Assert.False(newtonpermeter.Equals(new object())); }