public void TrimListOfEmptyItems_WIth_All_Empty_Items_Returns_Empty()
        {
            Collection <string> empty = new Collection <string>()
            {
                "", "", " ", " ", ""
            };
            List <string> trimmedList = new List <string>(ListLibrary.TrimListOfEmptyItems(empty));

            Assert.IsEmpty(trimmedList);
        }
        public void TrimListOfEmptyItems_With_No_Empty_Items_Returns_Original()
        {
            Collection <string> original = new Collection <string>()
            {
                "Foo", "Bar", "Moo", "Nar"
            };
            List <string> trimmedList = new List <string>(ListLibrary.TrimListOfEmptyItems(original));

            Assert.IsTrue(original.Count == trimmedList.Count);
            Assert.AreEqual(original[0], trimmedList[0]);
            Assert.AreEqual(original[1], trimmedList[1]);
            Assert.AreEqual(original[2], trimmedList[2]);
            Assert.AreEqual(original[3], trimmedList[3]);
        }
        public void TrimListOfEmptyItems_Trims_Empty_Items()
        {
            Collection <string> original = new Collection <string>()
            {
                "Foo", "", "Bar", "Moo", " ", "Nar"
            };
            List <string> expectedResult = new List <string>()
            {
                "Foo", "Bar", "Moo", "Nar"
            };
            List <string> trimmedList = new List <string>(ListLibrary.TrimListOfEmptyItems(original));

            Assert.IsTrue(original.Count > trimmedList.Count);
            Assert.AreEqual(expectedResult[0], trimmedList[0]);
            Assert.AreEqual(expectedResult[1], trimmedList[1]);
            Assert.AreEqual(expectedResult[2], trimmedList[2]);
            Assert.AreEqual(expectedResult[3], trimmedList[3]);
        }
        public void TrimListOfEmptyItems_Given_Null_Returns_Empty()
        {
            List <string> trimmedList = new List <string>(ListLibrary.TrimListOfEmptyItems(null));

            Assert.IsEmpty(trimmedList);
        }