Beispiel #1
0
        public void ParseListToString_With_Empty_List()
        {
            List <string> numericStringList = new List <string>();
            string        stringOfLists     = ListLibrary.ParseListToString(numericStringList);

            Assert.IsEmpty(stringOfLists);
        }
Beispiel #2
0
        public void ParseListToString()
        {
            List <string> numericStringList = new List <string>()
            {
                "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"
            };
            string stringOfLists = ListLibrary.ParseListToString(numericStringList);

            Assert.AreEqual("1, 2, 3, 4, 5, 6, 7, 8, 9, 10", stringOfLists);
        }
Beispiel #3
0
        public void ParseListToString_With_Null_List()
        {
            string stringOfLists = ListLibrary.ParseListToString(null);

            Assert.IsEmpty(stringOfLists);
        }