public void Bubble_Comparison() { var actual = new[] { new[] { 1, 2, 3 }, new[] { 2, 3, 4, 5 }, new[] { 1, 4 } }; var expected = new[] { new[] { 2, 3, 4, 5 }, new[] { 1, 2, 3 }, new[] { 1, 4 } }; Sort2.Bubble(actual, SomeMethod); CollectionAssert.AreEqual(expected, actual); }
public void Bubble_IComparer(int[][] actual, int[][] expected, IComparer <int[]> comp) { Sort2.Bubble(actual, comp); CollectionAssert.AreEqual(expected, actual); }