public void Zip_Zip2SmallvBigLists_Index7Is7() { //arrange ScratchList <int> list1 = new ScratchList <int>(); ScratchList <int> list2 = new ScratchList <int>(); int actual; int expected = 6; list1.Add(0); list1.Add(2); list1.Add(4); list2.Add(1); list2.Add(3); list2.Add(5); list2.Add(6); list2.Add(7); list2.Add(8); //act ScratchList <int> zippedList = list1.Zip(list1, list2); actual = zippedList[6]; //assert Assert.AreEqual(expected, actual); }
public void Zip_Zip2EqualSizedLists_Countis6() { //arrange ScratchList <int> list1 = new ScratchList <int>(); ScratchList <int> list2 = new ScratchList <int>(); int actual; int expected = 6; list1.Add(0); list1.Add(2); list1.Add(4); list2.Add(1); list2.Add(3); list2.Add(5); //act ScratchList <int> zippedList = list1.Zip(list1, list2); actual = zippedList.Count; //assert Assert.AreEqual(expected, actual); }