Exemplo n.º 1
0
        public void Should_Sort_The_List_Ascending(List <int> expected, List <int> list)
        {
            ListSorter listSorter = new ListSorter();

            List <int> actual = listSorter.BubbleSort(list);

            CollectionAssert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void Should_Sort_The_List_Ascending_When_Using_A_Transformation_With_A_Higher_Priority(List <int> expected, List <int> list)
        {
            ListSorter listSorter = new ListSorter();

            List <int> actual = listSorter.QuickSort(list);

            CollectionAssert.AreEqual(expected, actual);
        }