Пример #1
0
        public void SpliceFirstTest()
        {
            twoList.SpliceFirst(threeList.First, threeList.First.Next);
            Assert.AreEqual(4, twoList.Count);
            Assert.AreEqual(1, threeList.Count);

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

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

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