예제 #1
0
        public void TwelfthElementReturns144()
        {
            var kata = new FibonacciKiller();

            var result = kata.Fibonacci(12);

            Assert.AreEqual(144, result);
        }
예제 #2
0
        public void ThirdElementReturns2()
        {
            var kata = new FibonacciKiller();

            var result = kata.Fibonacci(3);

            Assert.AreEqual(2, result);
        }
예제 #3
0
        public void SixthElementReturns8()
        {
            var kata = new FibonacciKiller();

            var result = kata.Fibonacci(6);

            Assert.AreEqual(8, result);
        }
예제 #4
0
        public void SecondElementReturns1()
        {
            var kata = new FibonacciKiller();

            var result = kata.Fibonacci(2);

            Assert.AreEqual(1, result);
        }
예제 #5
0
        public void FourthElementReturns3()
        {
            var kata = new FibonacciKiller();

            var result = kata.Fibonacci(4);

            Assert.AreEqual(3, result);
        }
예제 #6
0
        public void FifthElementReturns5()
        {
            var kata = new FibonacciKiller();

            var result = kata.Fibonacci(5);

            Assert.AreEqual(5, result);
        }
예제 #7
0
        public void ZeroElementReturns0()
        {
            var kata = new FibonacciKiller();

            var result = kata.Fibonacci(0);

            Assert.AreEqual(0, result);
        }