Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }