コード例 #1
0
        public void ZippedLists_CheckZippedLists_NewListHasLastElementInProperOrder()
        {
            CustomListClass <int> myList = new CustomListClass <int>();
            int value  = 1;
            int value2 = 3;
            int value3 = 5;

            myList.Add(value);
            myList.Add(value2);
            myList.Add(value3);
            CustomListClass <int> myList2 = new CustomListClass <int>();
            int num  = 2;
            int num2 = 4;
            int num3 = 6;

            myList2.Add(num);
            myList2.Add(num2);
            myList2.Add(num3);
            CustomListClass <int> zippedList = new CustomListClass <int>();

            zippedList = myList + myList2;
            myList.ZipList(myList, myList2, zippedList);
            Assert.AreEqual(num3, zippedList[5]);
        }