Example #1
0
 public void Recursive_WhenIsOutOfBounds_ShouldThrowArgumentOutOfRange(int n)
 => Assert.Throws <ArgumentOutOfRangeException>(() => FibonacciLib.Recursive(n));
Example #2
0
 public void Recursive_Always_ShouldReturnNthFibonacci(int n, long expected)
 => Assert.AreEqual(expected, FibonacciLib.Recursive(n));