Esempio n. 1
0
        public void SpliceLastTest()
        {
            twoList.SpliceLast(threeList.First.Next, threeList.Last);
            Assert.AreEqual(4, twoList.Count);
            Assert.AreEqual(1, threeList.Count);

            int[] values1 = new int[] { 37, 51, 3, 4 };
            int   i       = 0;

            foreach (int current in twoList)
            {
                Assert.AreEqual(values1[i], current);
                i++;
            }

            Assert.AreEqual(2, threeList.First.Value);
        }