Ejemplo n.º 1
0
        public void InterfaceInequality()
        {
            var entry1 = new ProxyCacheEntry(typeof(Entity1), new[] { typeof(INHibernateProxy), typeof(ISerializable) });
            var entry2 = new ProxyCacheEntry(typeof(Entity1), new[] { typeof(ISerializable) });

            TweakEntry(entry2, entry1.GetHashCode());
            Assert.IsFalse(entry1.Equals(entry2));
            Assert.IsFalse(entry2.Equals(entry1));
        }
Ejemplo n.º 2
0
        public void TypeInequality()
        {
            var entry1 = new ProxyCacheEntry(typeof(Entity1), null);
            var entry2 = new ProxyCacheEntry(typeof(Entity2), null);

            TweakEntry(entry2, entry1.GetHashCode());
            Assert.IsFalse(entry1.Equals(entry2));
            Assert.IsFalse(entry2.Equals(entry1));
        }