public void GetFibonacci_PassedNegative5_ThrowsExecption() { Exception exception = null; try { FibonacciRecursive.GetFibonacci(-5); } catch (Exception ex) { exception = ex; } Assert.IsNotNull(exception); }
public void GetFibonacci_Passed7_Returns13() { Assert.AreEqual(13, FibonacciRecursive.GetFibonacci(7)); }
public void GetFibonacci_Passed3_Returns2() { Assert.AreEqual(2, FibonacciRecursive.GetFibonacci(3)); }
public void GetFibonacci_Passed2_Returns1() { Assert.AreEqual(1, FibonacciRecursive.GetFibonacci(1)); }