public void GetFactorial(int x, int expected) { //Arrange var fact = new UnitTestMethods(); //Act var actual = fact.Factorial(x); //Assert Assert.Equal(expected, actual); }