public void FibonacciLogicReturnsProperOutput()
 {
     var fs = new FibonacciSevice();
     Assert.AreEqual(1,fs.GetFibonacciNumber(1));
     Assert.AreEqual(2, fs.GetFibonacciNumber(3));
     Assert.AreEqual(5, fs.GetFibonacciNumber(5));
     Assert.AreEqual(55, fs.GetFibonacciNumber(10));
 }
Example #2
0
 private static int GetFibonacciFromServiceInstance(int sequenceIndex)
 {
     var fibService = new FibonacciSevice();
     return fibService.GetFibonacciNumber(sequenceIndex);
 }