Пример #1
0
        public void EqualsReturnsFalseOnNull()
        {
            MassFraction decimalfraction = MassFraction.FromDecimalFractions(1);

            Assert.False(decimalfraction.Equals(null));
        }
Пример #2
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            MassFraction decimalfraction = MassFraction.FromDecimalFractions(1);

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