Exemple #1
0
        public void EqualsIsImplemented()
        {
            PerTemperature v = PerTemperature.FromPerKelvins(1);

            Assert.IsTrue(v.Equals(PerTemperature.FromPerKelvins(1)));
            Assert.IsFalse(v.Equals(PerTemperature.Zero));
        }
Exemple #2
0
        public void EqualsReturnsFalseOnNull()
        {
            PerTemperature perkelvin = PerTemperature.FromPerKelvins(1);

            Assert.IsFalse(perkelvin.Equals(null));
        }
Exemple #3
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            PerTemperature perkelvin = PerTemperature.FromPerKelvins(1);

            Assert.IsFalse(perkelvin.Equals(new object()));
        }