public void CalculateFibonacci(int index, BigInteger expected) { P25Fibonacci fib = new P25Fibonacci(); BigInteger actual = fib.CalculateFibonacci(index); Assert.Equal(expected, actual); }
public void CalculateFibonacci_Index3_Returns2() { P25Fibonacci fib = new P25Fibonacci(); BigInteger actual = fib.CalculateFibonacci(2); BigInteger expected = 1; Assert.Equal(expected, actual); }