Exemple #1
0
        public void Equals_returnFalse_ifIdDifferent()
        {
            //Act
            var baseObject     = new Timeframe(DEFAULT_ID, DEFAULT_NAME, DEFAULT_UNIT_TYPE, DEFAULT_UNITS_COUNTER);
            var comparedObject = new Timeframe(DEFAULT_ID + 1, DEFAULT_NAME, DEFAULT_UNIT_TYPE, DEFAULT_UNITS_COUNTER);

            //Assert
            Assert.IsFalse(baseObject.Equals(comparedObject));
        }
Exemple #2
0
        public void Equals_returnFalse_forObjectOfOtherType()
        {
            //Act
            var baseObject     = new Timeframe(DEFAULT_ID, DEFAULT_NAME, DEFAULT_UNIT_TYPE, DEFAULT_UNITS_COUNTER);
            var comparedObject = new { Id = 1, Value = 2 };

            //Assert
            Assert.IsFalse(baseObject.Equals(comparedObject));
        }