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)); }
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)); }