public void EqualsIsImplemented()
        {
            RotationalAcceleration v = RotationalAcceleration.FromRadiansPerSecondSquared(1);

            Assert.True(v.Equals(RotationalAcceleration.FromRadiansPerSecondSquared(1), RotationalAcceleration.FromRadiansPerSecondSquared(RadiansPerSecondSquaredTolerance)));
            Assert.False(v.Equals(RotationalAcceleration.Zero, RotationalAcceleration.FromRadiansPerSecondSquared(RadiansPerSecondSquaredTolerance)));
        }
Exemplo n.º 2
0
        public void EqualsReturnsFalseOnNull()
        {
            RotationalAcceleration radianpersecondsquared = RotationalAcceleration.FromRadiansPerSecondSquared(1);

            Assert.False(radianpersecondsquared.Equals(null));
        }
Exemplo n.º 3
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            RotationalAcceleration radianpersecondsquared = RotationalAcceleration.FromRadiansPerSecondSquared(1);

            Assert.False(radianpersecondsquared.Equals(new object()));
        }