public void AllCombination_2Numbers_01() { // Act var result = new AmplifierController().AllCombination(1, 2); // Arrange result.ShouldBe(new List <long[]> { new long[] { 1, 2 }, new long[] { 2, 1 }, }); }
public void AllCombination_3Numbers_01() { // Act var result = new AmplifierController().AllCombination(1, 20, 30); // Arrange result.ShouldBe(new List <int[]> { new int[] { 1, 20, 30 }, new int[] { 1, 30, 20 }, new int[] { 20, 1, 30 }, new int[] { 20, 30, 1 }, new int[] { 30, 20, 1 }, new int[] { 30, 1, 20 }, }); }