Esempio n. 1
0
        public void SortTestTrenary()
        {
            var NotSortArrey = GetNotSortArray;
            var massive      = NotSortArrey.OrderBy(x => x);
            var result       = InsertionSort.ArraySort(NotSortArrey, false);

            Assert.AreEqual(massive, result);
        }
Esempio n. 2
0
        public void SortTestTrenary_ByDescending()
        {
            var NotSortArrey = GetNotSortArray;
            var massive      = NotSortArrey.OrderByDescending(x => x);
            var result       = InsertionSort.ArraySort(NotSortArrey, true);

            Assert.AreEqual(massive, result);
        }
Esempio n. 3
0
        public void sortTest()
        {
            var NotSortArrey = GetNotSortArray;
            var massive      = NotSortArrey.OrderBy(x => x);
            //var sort = new ClassLibrary1.InsertionSort();
            //var result = sort.ArraySort(massiveSort);
            var result = InsertionSort.ArraySort(NotSortArrey);

            Assert.AreEqual(massive, result);
        }