public void EqualsIsImplemented() { AreaMomentOfInertia v = AreaMomentOfInertia.FromMetersToTheFourth(1); Assert.True(v.Equals(AreaMomentOfInertia.FromMetersToTheFourth(1), AreaMomentOfInertia.FromMetersToTheFourth(MetersToTheFourthTolerance))); Assert.False(v.Equals(AreaMomentOfInertia.Zero, AreaMomentOfInertia.FromMetersToTheFourth(MetersToTheFourthTolerance))); }
public void EqualsReturnsFalseOnNull() { AreaMomentOfInertia metertothefourth = AreaMomentOfInertia.FromMetersToTheFourth(1); Assert.False(metertothefourth.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { AreaMomentOfInertia metertothefourth = AreaMomentOfInertia.FromMetersToTheFourth(1); Assert.False(metertothefourth.Equals(new object())); }