Пример #1
0
        public void GetIndexOfMaxElement_Tests(int mockNumber, int[] expected)
        {
            int[,] array = TwoDimentionalArraysMock.Get(mockNumber);
            int[] actual = TwoDimentionalArrays.GetIndexOfMaxElement(array);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void CountElementsThatLargerThenNeighbors_Tests(int mockNumber, int expected)
        {
            int[,] array = TwoDimentionalArraysMock.Get(mockNumber);

            int actual = TwoDimentionalArrays.CountElementsThatLargerThenNeighbors(array);

            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void Transpose_Tests(int mockNumber, int expectedMockNumber)
        {
            int[,] actArr = TwoDimentionalArraysMock.Get(mockNumber);
            int[,] actual = TwoDimentionalArrays.Transpose(actArr);

            int[,] expArr = TwoDimentionalArraysMock.Get(expectedMockNumber);

            Assert.AreEqual(expArr, actual);
        }