Exemple #1
0
        public void BaseModalComparer_GetHashCode_NullId()
        {
            var bmComparer1 = new BaseModelComparer <BaseModel>();

            var result = bmComparer1.GetHashCode(new BaseModel());

            Assert.AreEqual(0, result);
        }
Exemple #2
0
        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);
        }