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