Пример #1
0
        public void Test08_ToIntSelectionSort_Descending2()
        {
            string testStringEasy = "abcdefg";
            string methodAnswer   = SortedString.ToIntSelectionSort(testStringEasy, false);

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

            Assert.AreEqual(correctAnswerDescending, methodAnswer);
        }
Пример #3
0
        public void Test11_InsertionSort_Ascending()
        {
            string methodAnswer = SortedString.InsertionSort(stringToSort, true);

            Assert.AreEqual(correctAnswerAscending, methodAnswer);
        }
Пример #4
0
        public void Test09_GnomeSort_Ascending()
        {
            string methodAnswer = SortedString.GnomeSort(stringToSort, true);

            Assert.AreEqual(correctAnswerAscending, methodAnswer);
        }
Пример #5
0
        public void Test05_CharArraySort_Descending()
        {
            string methodAnswer = SortedString.CharArraySort(stringToSort, false);

            Assert.AreEqual(correctAnswerDescending, methodAnswer);
        }
Пример #6
0
        public void Test04_CharArraySort_Ascending()
        {
            string methodAnswer = SortedString.CharArraySort(stringToSort, true);

            Assert.AreEqual(correctAnswerAscending, methodAnswer);
        }
Пример #7
0
        public void Test03_BubbleSort_Descending()
        {
            string methodAnswer = SortedString.BubbleSort(stringToSort, false);

            Assert.AreEqual(correctAnswerDescending, methodAnswer);
        }