public void ConvertToStringString() { //Arrange ListCustom <string> testListOne = new ListCustom <string>() { "1", "2", "3" }; //Act string result = testListOne.ToString(); //Assert Assert.AreEqual("123", result); }
public void ConvertToStringObject() { //Arrange ListCustom <Person> testListOne = new ListCustom <Person>() { new Person("1"), new Person("1"), new Person("1") }; //Act string result = testListOne.ToString(); //Assert Assert.AreEqual("CustomList.PersonCustomList.PersonCustomList.Person", result); }
public void ConvertToStringInt() { //Arrange ListCustom <int> testListOne = new ListCustom <int>() { 1, 2, 3 }; //Act string result = testListOne.ToString(); //Assert Assert.AreEqual("123", result); }