public void QSort_ListWithInvalidString_IndexOutOfRangeException()
        {
            List <string> expected = new List <string>()
            {
                "qweqweab",
                "a",
                "dfsffdda"
            };

            Assert.Throws <ArgumentException>(() => StringSorter.QSort(expected));
        }
        public void QSort_SomeStrings_SortedStrings()
        {
            List <string> strings = new List <string>()
            {
                "asdasdcb",
                "qweqweab",
                "dfsffdda"
            };

            List <string> expected = new List <string>()
            {
                "qweqweab",
                "asdasdcb",
                "dfsffdda"
            };

            CollectionAssert.AreEqual(expected, StringSorter.QSort(strings));
        }
 public void QSort_NullList_ArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() => StringSorter.QSort(null));
 }