Example #1
0
        public void AttachAfterSetsNextOfSource()
        {
            TestNodeB.AttachAfter(TestNodeA);

            TestObject.AttachAfter(TestNodeA);

            Assert.AreSame(TestNodeB, TestObject.Next);
        }
Example #2
0
        public void CannotAttachAfterNodeOfDifferentParent()
        {
            object             otherParent = new object();
            DualLinkNode <int> otherNode   = new DualLinkNode <int>(otherParent, TestInt);

            TestObject.AttachAfter(otherNode);
        }