public void ListZipper_IfTwoEqualListsProvided_ChecksForFullList() { //Arrange BriansList <int> listOne = new BriansList <int>(); BriansList <int> listTwo = new BriansList <int>(); BriansList <int> zippedList = new BriansList <int>(); listOne.Add(1); listOne.Add(2); listOne.Add(3); listTwo.Add(4); listTwo.Add(5); listTwo.Add(6); int[] expected = { 1, 4, 2, 5, 3, 6 }; //Act zippedList.ListZipper(listOne, listTwo); int[] actual = zippedList.arr; //Assert Assert.ReferenceEquals(expected, actual); }
public void ListZipper_IfTwoEqualListsProvided_NewZipperedList() { //Arrange BriansList <int> listOne = new BriansList <int>(); BriansList <int> listTwo = new BriansList <int>(); BriansList <int> zippedList = new BriansList <int>(); listOne.Add(1); listOne.Add(2); listOne.Add(3); listTwo.Add(4); listTwo.Add(5); listTwo.Add(6); int expected = 6; //Act zippedList.ListZipper(listOne, listTwo); int actual = zippedList[5]; //Assert Assert.AreEqual(expected, actual); }