Exemple #1
0
        public static void Test2(int mockNumber, int expected)
        {
            int[,] arr = DoubleArrayMock.GetMock(mockNumber);

            int actual = DoubleArrays.Test2(arr);

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public static void Test2_WhenArrayEmpty_ArgumentExpection(int mockNumber)
        {
            int[,] arr = DoubleArrayMock.GetMock(mockNumber);

            Assert.Throws <ArgumentException>(() => DoubleArrays.Test2(arr));
        }