示例#1
0
        public void SuperListStringtest2()
        {
            SuperList <char> superlist = new SuperList <char>()
            {
                'i', 't', 's', 'w', 'o', 'r', 'k', 'i', 'n', 'g'
            };
            string result   = superlist.ToString();
            string expected = "itsworking";

            Assert.AreEqual(result, expected);
        }
示例#2
0
        public void SuperListStringtest3()
        {
            SuperList <string> superlist = new SuperList <string>()
            {
                "it's ", "definitely ", "working!"
            };
            string result   = superlist.ToString();
            string expected = "it's definitely working!";

            Assert.AreEqual(result, expected);
        }
示例#3
0
        public void SuperListStringtest1()
        {
            //i have to figure out how to detect types if I am going to be able to make the numbers format how I like.
            SuperList <int> superlist = new SuperList <int>()
            {
                10, 9, 8, 7, 6, 5, 4, 3, 2, 1
            };
            string result   = superlist.ToString();
            string expected = "10, 9, 8, 7, 6, 5, 4, 3, 2, 1";

            Assert.AreEqual(expected, result);
        }