public void GetHashCodeForValidObjectReturnsObjectHashCode() { var sut = new GenericEqualityComparer <Model>(); var model = new Model(); Assert.Equal(model.GetHashCode(), sut.GetHashCode(model)); }
public void GetHashCodeForNullObjectReturnsZero() { var sut = new GenericEqualityComparer <Model>(); Assert.Equal(0, sut.GetHashCode(null)); }