示例#1
0
        public void Test2()
        {
            int[] a = new int[] { 3, 5, 1, 3, 7, 2, 11 };
            int[] b = new int[] { 1, 3, 5, 2, 3, 7, 10 };

            bool notSorted = CheckArrays.SolveWithoutSort(a, b);
            bool sorted    = CheckArrays.SolveWithSort(a, b);

            Assert.AreEqual(notSorted, sorted);
        }
示例#2
0
        public void Test1()
        {
            int[] a = new int[] { 1, 2, 3, 1, 4, 5, 6, 7 };
            int[] b = new int[] { 2, 1, 6, 4, 5, 7, 3, 1 };

            bool notSorted = CheckArrays.SolveWithoutSort(a, b);
            bool sorted    = CheckArrays.SolveWithSort(a, b);

            Assert.AreEqual(notSorted, sorted);
        }