Exemplo n.º 1
0
        public void SelectionSortTest()
        {
            // arrange
            var selection = new SelectionSort <int>();

            selection.Items.AddRange(Items);

            // act
            selection.MakeSort();

            // assert
            for (int i = 0; i < Items.Count; i++)
            {
                Assert.AreEqual(Sorted[i], selection.Items[i]);
            }
        }