Example #1
0
        public void BackwardArray_6Test(int[] x, int[] expected)
        {
            int[] actual = ArrayRank1.BackwardArray_6(x);

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void SummOddIndexOfArray_5Test(int[] x, int exprcted)
        {
            int actual = ArrayRank1.SummOddIndexOfArray_5(x);

            Assert.AreEqual(exprcted, actual);
        }
Example #3
0
 public void SummOddIndexOfArray_5_ArrayLenghtTo0_ShouldEception(int[] x)
 {
     Assert.Throws <ArgumentException>(() => ArrayRank1.SummOddIndexOfArray_5(x));
 }
Example #4
0
        public void IndexMaxOfArray_4Test(int[] x, int expected)
        {
            int actual = ArrayRank1.IndexMaxOfArray_4(x);

            Assert.AreEqual(expected, actual);
        }
Example #5
0
 public void IndexMaxOfArray_4_ArrayLenghtTo0_ShouldEception(int[] x)
 {
     Assert.Throws <ArgumentException>(() => ArrayRank1.IndexMaxOfArray_4(x));
 }
Example #6
0
 public void MinOfArray_1_ArrayLenght0_ShouldException(int[] x)
 {
     Assert.Throws <ArgumentException>(() => ArrayRank1.MinOfArray_1(x));
 }
Example #7
0
        public void MaxOfArray_2Test(int[] x, int expected)
        {
            int actual = ArrayRank1.MaxOfArray_2(x);

            Assert.AreEqual(expected, actual);
        }
Example #8
0
        public void SelectSortArray_10Test(int[] x, int[] expected)
        {
            int[] actual = ArrayRank1.SelectSortArray_10(x);

            Assert.AreEqual(expected, actual);
        }
Example #9
0
 public void SelectSortArray_10_ArrayLenghtTo0_ShouldException(int[] x)
 {
     Assert.Throws <ArgumentException>(() => ArrayRank1.SelectSortArray_10(x));
 }
Example #10
0
 public void BubleSortArray_9_ArrayLenghtTo0_ShouldException(int[] x)
 {
     Assert.Throws <ArgumentException>(() => ArrayRank1.BubleSortArray_9(x));
 }
Example #11
0
        public void BubleSortArray_9Test(int[] x, int[] expected)
        {
            int[] actual = ArrayRank1.BubleSortArray_9(x);

            Assert.AreEqual(expected, actual);
        }
Example #12
0
 public void BackwardHalfArray_8_ArrayLenghtTo0_ShouldException(int[] x)
 {
     Assert.Throws <ArgumentException>(() => ArrayRank1.BackwardHalfArray_8(x));
 }
Example #13
0
 public void QountOddNumberOfArray_7_ArrayLenghtTo0_ShouldException(int[] x)
 {
     Assert.Throws <ArgumentException>(() => ArrayRank1.QountOddNumberOfArray_7(x));
 }
Example #14
0
        public void QountOddNumberOfArray_7Test(int[] x, int expected)
        {
            int actual = ArrayRank1.QountOddNumberOfArray_7(x);

            Assert.AreEqual(expected, actual);
        }