Beispiel #1
0
        public void OwnCircularLinkedEntities()
        {
            Circular1 o = new Circular1();

            o.Other = o;

            Assert.IsTrue(o.Equals(o));
            Assert.AreNotEqual(o.GetHashCode(), 0);
            Assert.AreNotEqual(o.ToString(), "");
        }
Beispiel #2
0
        public void SameClassCircularLinkedEntities()
        {
            Circular1 o1 = new Circular1();
            Circular1 o2 = new Circular1();

            o1.Other = o2;
            o2.Other = o1;

            Assert.IsTrue(o1.Equals(o1));
            Assert.AreNotEqual(o1.GetHashCode(), 0);
            Assert.AreNotEqual(o1.ToString(), "");
        }