public void CheckNextPermutation(int[] nums, int[] expected) { var sol = new NextPermutation(); sol.FindNextPermutation(nums); Assert.Equal(nums, expected); }
public void FindNextPermutation(int[] input, int[] expected) { var sut = new NextPermutation(); sut.FindNextPermutation(input); Assert.AreEqual(expected, input); }