public void GetHashCode_EqualObjects()
        {
            EnumWrapper one = EnumWrapper.Get("123");
            EnumWrapper two = EnumWrapper.Get("123");

            Assert.That(one.GetHashCode(), Is.EqualTo(two.GetHashCode()));
        }
Exemple #2
0
        public override int GetHashCode()
        {
            var hashCode = -1129657248;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + TypeDefName.GetHashCode();
            hashCode = hashCode * -1521134295 + EnumWrapper.GetHashCode();
            return(hashCode);
        }