Beispiel #1
0
 static long FindFibonacciGolden(int index)
 {
     return(fg.GenerateFibonacci(2 * index) * fg.GenerateFibonacci(2 * index + 1));
 }
Beispiel #2
0
 public void FibonacciTestSuccess()
 {
     CollectionAssert.AreEqual(FibonacciGenerator.GenerateFibonacci(expected.Length), expected);
 }
        public void ShouldReturnOneWhenInputZero()
        {
            var fibonacci = _fibonacciGenerator.GenerateFibonacci(0);

            Assert.Equal(1ul, fibonacci);
        }