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

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

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

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

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

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

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

            Assert.AreEqual(correctAnswerDescending, methodAnswer);
        }