public void GetHashCode_EqualObjects() { EnumWrapper one = EnumWrapper.Get("123"); EnumWrapper two = EnumWrapper.Get("123"); Assert.That(one.GetHashCode(), Is.EqualTo(two.GetHashCode())); }
public override int GetHashCode() { var hashCode = -1129657248; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + TypeDefName.GetHashCode(); hashCode = hashCode * -1521134295 + EnumWrapper.GetHashCode(); return(hashCode); }