Exemplo n.º 1
0
        public void GetSortedArrayTests()
        {
            var arr = new List <int> {
                5, 3, 6, 2, 10
            };
            var sorter = new SelectionSort();

            var resultExpected = arr.OrderBy(i => i).ToArray();
            var resultActual   = sorter.GetSortedArray(arr);

            Assert.Equal(string.Join(' ', resultExpected), string.Join(' ', resultActual));
        }