Exemplo n.º 1
0
        public void EqualsReturnsFalseOnNull()
        {
            FuelEfficiency literper100kilometers = FuelEfficiency.FromLitersPer100Kilometers(1);

            Assert.False(literper100kilometers.Equals(null));
        }
Exemplo n.º 2
0
        public void EqualsReturnsFalseOnTypeMismatch()
        {
            FuelEfficiency literper100kilometers = FuelEfficiency.FromLitersPer100Kilometers(1);

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