Exemplo n.º 1
0
 public void FibonacciTest()
 {
     Assert.AreEqual(0, NumberSequence.Fibonacci(0));
     Assert.AreEqual(1, NumberSequence.Fibonacci(1));
     Assert.AreEqual(1, NumberSequence.Fibonacci(2));
     Assert.AreEqual(5, NumberSequence.Fibonacci(5));
     Assert.AreEqual(55, NumberSequence.Fibonacci(10));
     Assert.AreEqual(6765, NumberSequence.Fibonacci(20));
 }