Ejemplo n.º 1
0
        public void GetFirstIndexWithLength()
        {
            P25Fibonacci fib      = new P25Fibonacci();
            int          actual   = fib.GetFirstIndexWithLength(2);
            int          expected = 7;

            Assert.Equal(expected, actual);
        }
Ejemplo n.º 2
0
 static async Task Main(string[] args)
 {
     try
     {
         P25Fibonacci fib    = new P25Fibonacci();
         var          result = fib.GetFirstIndexWithLength(1000);
         Console.WriteLine("Answer: " + result);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }