Esempio n. 1
0
        public void Fibonacci()
        {
            Problem3 p3 = new Problem3();
            var result = p3.GetFibonacci(6);

            if (expectedArray.Length != result.Length)
            {
                throw new Exception("Array differs in number of elements");
            }

            for (int i = 0; i < expectedArray.Length; i++)
            {
                Assert.AreEqual(expectedArray[i], result[i]);
            }
        }
Esempio n. 2
0
 public void FibonacciComplex()
 {
     Problem3 p3 = new Problem3();
     var result = p3.GetFibonacci(600000);
 }