Esempio n. 1
0
        public void EqualsIsImplemented()
        {
            ForcePerLength v = ForcePerLength.FromNewtonsPerMeter(1);

            Assert.True(v.Equals(ForcePerLength.FromNewtonsPerMeter(1)));
            Assert.False(v.Equals(ForcePerLength.Zero));
        }
Esempio n. 2
0
        public void EqualsReturnsFalseOnNull()
        {
            ForcePerLength newtonpermeter = ForcePerLength.FromNewtonsPerMeter(1);

            Assert.False(newtonpermeter.Equals(null));
        }
Esempio n. 3
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            ForcePerLength newtonpermeter = ForcePerLength.FromNewtonsPerMeter(1);

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