Пример #1
0
        public void GetNumberArrayElementsLargerAllNeighbors__WhenDoubleArrayPassed_ShouldNumberArrayElementsLargerAllNeighbors(int mockNumber, int expected)
        {
            int[,] array = DoubleArrayMock.GetMock(mockNumber);
            int actual = TwoDimensionalArrays.GetNumberArrayElementsLargerAllNeighbors(array);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void GetMaxIndexElementTwoDimensionalArray_WhenDoubleArrayPassed_ShouldMaxIndexDoubleArray(int mockNumber, int[] expected)
        {
            int[,] array = DoubleArrayMock.GetMock(mockNumber);
            int[] actual = TwoDimensionalArrays.GetMaxIndexElementTwoDimensionalArray(array);

            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void GetDisplayArrayMainDiagonalWhenDoubleArrayPassed_ShouldDisplayArrayMainDiagonal(int mockNumber, int mockExpected)
        {
            int[,] array    = DoubleArrayMock.GetMock(mockNumber);
            int[,] expected = DoubleArrayMock.GetMockResult(mockExpected);
            int[,] actual   = TwoDimensionalArrays.GetDisplayArrayMainDiagonal(array);

            Assert.AreEqual(expected, actual);
        }