public void FindMinValueTest(int number, int expectedNumber, bool task) { //Найти минимальный элемент массива int[,] array = MockArrays.MultiDimentionalArray(number); int[] expected = MockArrays.SingleDimentionalArray(expectedNumber); int[] actual = MultidementionalArray.FindMinValue(array, task); Assert.AreEqual(expected, actual); }
public void FindMinNullArgumentTest(int number, bool task) { int[,] array = MockArrays.MultiDimentionalArray(number); try { int[] actual = MultidementionalArray.FindMinValue(array, task); } catch (ArgumentNullException) { Assert.Pass(); } }