public void TestFactorialWhenInput1_Returns1() { //arrange int input = 1; int expected = 1; //act int output = MyMethods.Factorial(input); //assert Assert.AreEqual(expected, output); }
public void TestFactorial() { //arrange int input = 5; int expected = 120; //act int output = MyMethods.Factorial(input); //assert Assert.AreEqual(expected, output); }