예제 #1
0
        public void ConvertToStringString()
        {
            //Arrange
            ListCustom <string> testListOne = new ListCustom <string>()
            {
                "1", "2", "3"
            };
            //Act
            string result = testListOne.ToString();

            //Assert
            Assert.AreEqual("123", result);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public void ConvertToStringInt()
        {
            //Arrange
            ListCustom <int> testListOne = new ListCustom <int>()
            {
                1, 2, 3
            };
            //Act
            string result = testListOne.ToString();

            //Assert
            Assert.AreEqual("123", result);
        }