public void Test_Of_Zipp_When_One_List_Is_Empty() { //Arrange CustomList <int> myList = new CustomList <int>(); CustomList <int> myList2 = new CustomList <int>(); int value = 1; int value2 = 3; int expectedCount = 2; int actualCount; //Act myList.Add(value); myList.Add(value2); myList.Zipper(myList2); actualCount = myList.Count; //Assert Assert.AreEqual(expectedCount, actualCount); }
public void Test_Of_Zipper_Method() { //Arrange CustomList <int> myList = new CustomList <int>(); CustomList <int> myList2 = new CustomList <int>(); int value = 1; int value2 = 3; int number = 2; int number2 = 4; int expectedValue = 2; int actualValue; //Act myList.Add(value); myList.Add(value2); myList2.Add(number); myList2.Add(number2); myList.Zipper(myList2); actualValue = myList[1]; //Assert Assert.AreEqual(expectedValue, actualValue); }
public void Test_Of_Zipper_Method_Length() { //Arrange CustomList <int> myList = new CustomList <int>(); CustomList <int> myList2 = new CustomList <int>(); int value = 1; int value2 = 3; int number = 2; int number2 = 4; int expectedCount = 4; int actualCount; //Act myList.Add(value); myList.Add(value2); myList2.Add(number); myList2.Add(number2); myList.Zipper(myList2); actualCount = myList.Count; //Assert Assert.AreEqual(expectedCount, actualCount); }