public void TestFibonacci9() { FibonacciCounter counter = new FibonacciCounter(); int input = 9; Assert.AreEqual(55, counter.counter(input)); }
public void TestFibonacci7() { FibonacciCounter counter = new FibonacciCounter(); int input = 7; Assert.AreEqual(21, counter.counter(input)); }
public void TestFibonacci8() { FibonacciCounter counter = new FibonacciCounter(); int input = 8; Assert.AreEqual(34, counter.counter(input)); }
public void TestFibonacci6() { FibonacciCounter counter = new FibonacciCounter(); int input = 6; Assert.AreEqual(13, counter.counter(input)); }
static void Main(string[] args) { int position = 0; foreach (int fib in FibonacciCounter.GetFibonacciValue(22)) { position++; Console.WriteLine("{0}:{1}", position, fib); } }