public void MemberInfoComparer_EqualsCustom_Subclass()
        {
            var eq = new MyCustomMemberComparer();

            var m = new MyCustomMemberInfo();

            Assert.IsTrue(eq.Equals(m, m));
            Assert.AreEqual(42, eq.GetHashCode(m));
        }
        public void MemberInfoComparer_Custom_ThrowsNotImplemented()
        {
            var eq      = new MemberInfoEqualityComparer();
            var custom1 = new MyCustomMemberInfo();
            var custom2 = new MyCustomMemberInfo();

            Assert.ThrowsException <NotImplementedException>(() => eq.Equals(custom1, custom2));
            Assert.ThrowsException <NotImplementedException>(() => eq.GetHashCode(custom1));
            Assert.ThrowsException <NotImplementedException>(() => eq.ResolveMember(typeof(object), custom1));
        }