public void EqualsIsImplemented()
        {
            RotationalSpeed v = RotationalSpeed.FromRevolutionsPerSecond(1);

            Assert.IsTrue(v.Equals(RotationalSpeed.FromRevolutionsPerSecond(1)));
            Assert.IsFalse(v.Equals(RotationalSpeed.Zero));
        }
Esempio n. 2
0
        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)));
        }
Esempio n. 3
0
        public void EqualsReturnsFalseOnNull()
        {
            RotationalSpeed radianpersecond = RotationalSpeed.FromRadiansPerSecond(1);

            Assert.False(radianpersecond.Equals(null));
        }
Esempio n. 4
0
        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));
        }