Exemple #1
0
        public void Selection_Sort()
        {
            int[] listOfNumbers = new int[] { 5, 4, 6, 8, 1, 7, 2, 3 };

            var sortedArray = SortArray.Selection(listOfNumbers);

            Assert.Equal(1, sortedArray[0]);
            Assert.Equal(8, sortedArray[sortedArray.Length - 1]);
        }