public void CheckNextPermutation(int[] nums, int[] expected)
    {
        var sol = new NextPermutation();

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

            sut.FindNextPermutation(input);
            Assert.AreEqual(expected, input);
        }