Example #1
0
        public void Test08_ToIntSelectionSort_Descending2()
        {
            string testStringEasy = "abcdefg";
            string methodAnswer   = SortedString.ToIntSelectionSort(testStringEasy, false);

            Assert.AreEqual("gfedcba", methodAnswer);
        }
Example #2
0
        public void Test12_InsertionSort_Descending()
        {
            string methodAnswer = SortedString.InsertionSort(stringToSort, false);

            Assert.AreEqual(correctAnswerDescending, methodAnswer);
        }
Example #3
0
        public void Test11_InsertionSort_Ascending()
        {
            string methodAnswer = SortedString.InsertionSort(stringToSort, true);

            Assert.AreEqual(correctAnswerAscending, methodAnswer);
        }
Example #4
0
        public void Test09_GnomeSort_Ascending()
        {
            string methodAnswer = SortedString.GnomeSort(stringToSort, true);

            Assert.AreEqual(correctAnswerAscending, methodAnswer);
        }
Example #5
0
        public void Test05_CharArraySort_Descending()
        {
            string methodAnswer = SortedString.CharArraySort(stringToSort, false);

            Assert.AreEqual(correctAnswerDescending, methodAnswer);
        }
Example #6
0
        public void Test04_CharArraySort_Ascending()
        {
            string methodAnswer = SortedString.CharArraySort(stringToSort, true);

            Assert.AreEqual(correctAnswerAscending, methodAnswer);
        }
Example #7
0
        public void Test03_BubbleSort_Descending()
        {
            string methodAnswer = SortedString.BubbleSort(stringToSort, false);

            Assert.AreEqual(correctAnswerDescending, methodAnswer);
        }