public void ToString_ListOfArrays_ConvertListOfArraysToString() { CustomList.ListMethod <int[]> listMethodsOne = new CustomList.ListMethod <int[]>(); //Arrange int[] expectedValueOne = { 10, 11, 12 }; int[] expectedValueTwo = { 10, 11, 12 }; listMethodsOne.Add(expectedValueOne); listMethodsOne.Add(expectedValueTwo); //Act string actualValue = listMethodsOne.ToString(); //Assert }
public void ToString_List_ConvertListToString() { CustomList.ListMethod <int> listMethodsOne = new CustomList.ListMethod <int>(); //Arrange listMethodsOne.Add(10); listMethodsOne.Add(11); listMethodsOne.Add(12); string expectedValue = "10,11,12"; //Act string actualValue = listMethodsOne.ToString(); //Assert Assert.AreEqual(expectedValue, actualValue); }