public void EqualsIsImplemented()
        {
            ElectricInductance v = ElectricInductance.FromHenries(1);

            Assert.True(v.Equals(ElectricInductance.FromHenries(1), ElectricInductance.FromHenries(HenriesTolerance)));
            Assert.False(v.Equals(ElectricInductance.Zero, ElectricInductance.FromHenries(HenriesTolerance)));
        }
Example #2
0
        public void EqualsReturnsFalseOnNull()
        {
            ElectricInductance henry = ElectricInductance.FromHenries(1);

            Assert.False(henry.Equals(null));
        }
Example #3
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            ElectricInductance henry = ElectricInductance.FromHenries(1);

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