public void RemoveUnitTest3_Int_ArrayOf_T() { //Arrange MattyList <string> list = new MattyList <string>(); string excepected = null; string excepected2 = null; //Act list.Add("Hi"); list.Add("Guy"); list.Add("What"); list.MattyRemove("What"); list.MattyRemove("Guy"); string actual = list[1]; string actual2 = list[2]; //Assert Assert.AreEqual(excepected, actual); Assert.AreEqual(excepected2, actual2); }
public void RemoveUnitTest5_Int_ArrayOf_T() { //Arrange MattyList <int> list = new MattyList <int>(); int excepected = 2; //Act list.Add(1); list.Add(2); list.Add(3); list.MattyRemove(1); int actual = list.Count; //Assert Assert.AreEqual(excepected, actual); }
public void RemoveUnitTest4_Int_ArrayOf_T() { //Arrange MattyList <string> list = new MattyList <string>(); int excepected = 3; //Act list.Add("Hi"); list.Add("Guy"); list.Add("What"); list.MattyRemove("a"); int actual = list.Count; //Assert Assert.AreEqual(excepected, actual); }