public void EqualsIsImplemented() { RotationalSpeed v = RotationalSpeed.FromRevolutionsPerSecond(1); Assert.IsTrue(v.Equals(RotationalSpeed.FromRevolutionsPerSecond(1))); Assert.IsFalse(v.Equals(RotationalSpeed.Zero)); }
public void EqualsIsImplemented() { RotationalSpeed v = RotationalSpeed.FromRadiansPerSecond(1); Assert.True(v.Equals(RotationalSpeed.FromRadiansPerSecond(1), RotationalSpeed.FromRadiansPerSecond(RadiansPerSecondTolerance))); Assert.False(v.Equals(RotationalSpeed.Zero, RotationalSpeed.FromRadiansPerSecond(RadiansPerSecondTolerance))); }
public void EqualsReturnsFalseOnNull() { RotationalSpeed radianpersecond = RotationalSpeed.FromRadiansPerSecond(1); Assert.False(radianpersecond.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { RotationalSpeed radianpersecond = RotationalSpeed.FromRadiansPerSecond(1); Assert.False(radianpersecond.Equals(new object())); }
public void EqualsReturnsFalseOnNull() { RotationalSpeed revolutionpersecond = RotationalSpeed.FromRevolutionsPerSecond(1); Assert.IsFalse(revolutionpersecond.Equals(null)); }