示例#1
0
        public void TestHeapSort()
        {
            int[] arreglo = new int[] { 10, 20, 30, 100, 3, 2, 1 };

            int[] actual   = Programa.HeapSort(arreglo);
            int[] expected = new int[] { 100, 30, 20, 10, 3, 2, 1 };

            Assert.Equal(expected, actual);
        }