public void minimumSwapsTest2() { int expected = 3; int[] arr = new int[] { 1, 3, 5, 2, 4, 6, 7 }; int actual = SortMin.minimumSwaps(arr); Assert.AreEqual(expected, actual); }
public void minimumSwapsTest1() { int expected = 3; int[] arr = new int[] { 2, 3, 4, 1, 5 }; int actual = SortMin.minimumSwaps(arr); Assert.AreEqual(expected, actual); }