示例#1
0
 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);
 }
示例#2
0
 public void FindMinNullArgumentTest(int number, bool task)
 {
     int[,] array = MockArrays.MultiDimentionalArray(number);
     try
     {
         int[] actual = MultidementionalArray.FindMinValue(array, task);
     }
     catch (ArgumentNullException)
     {
         Assert.Pass();
     }
 }