public void CountBiggerNeighborTest(int number, int expected) { //Отразите массив относительно его главной диагонали int[,] array = MockArrays.MultiDimentionalArray(number); int actual = MultidementionalArray.CountBiggerNeighbor(array); Assert.AreEqual(expected, actual); }
public void CountBiggerNeighborNullArgumentTest(int number) { int[,] array = MockArrays.MultiDimentionalArray(number); try { int actual = MultidementionalArray.CountBiggerNeighbor(array); } catch (ArgumentNullException) { Assert.Pass(); } }