public void BaseModalComparer_GetHashCode_NullId() { var bmComparer1 = new BaseModelComparer <BaseModel>(); var result = bmComparer1.GetHashCode(new BaseModel()); Assert.AreEqual(0, result); }
public void BaseModalComparer_GetHashCode() { var intValue = 99; var bmComparer1 = new BaseModelComparer <BaseModel>(); var result = bmComparer1.GetHashCode(new BaseModel { Id = intValue }); Assert.AreEqual(intValue.GetHashCode(), result); }