Exemplo n.º 1
0
 public void Solves_Problem_0024_Example()
 {
     Solution024.Run(2, 4).Should().Be("120");
 }
Exemplo n.º 2
0
        public void Solution_024_Throws_On_Invalid_Permutation_Index()
        {
            Action runSolution024 = () => Solution024.Run(2, 10);

            runSolution024.Should().Throw <IndexOutOfRangeException>("'012' does not have a 10 permutation.");
        }
 public void TestMethod(ListNode <int> head, List <int> output)
 {
     Assert.Equal(output, Solution024.SwapPairs(head).ToList());
 }