Beispiel #1
0
        public void SortingTests()
        {
            // Arrange
            var input = new int[] { 30, -20, 66, 1, 0, -666, 888, 33, 999 };

            // Act & Assert
            BubbleSort.BubbleSortAlgo(input).Should().BeInAscendingOrder();
            SelectionSort.SelectionSortAlgo(input).Should().BeInAscendingOrder();
            InsertionSort.InsertionSortAlgo(input).Should().BeInAscendingOrder();
            MergeSort.MergeSortAlgo(input).Should().BeInAscendingOrder();
            RandomQuickSort.RandomQuickSortAlgo(input).Should().BeInAscendingOrder();
        }