示例#1
0
 public void BubbleSortTest_ArgumentExeption(int[,] matrix, int[,] expectedResult, SortType sortType, SortDirection sortDirection)
 {
     Assert.That(() => BubbleSortClass.Sort(matrix, sortType, sortDirection), Throws.TypeOf <ArgumentException>());
 }
示例#2
0
 public void BubbleSortTest(int[,] matrix, int[,] expectedResult, SortType sortType, SortDirection sortDirection)
 {
     int[,] result = BubbleSortClass.Sort(matrix, sortType, sortDirection);
     Assert.IsTrue(BubbleSortClass.Compare(result, expectedResult));
 }