示例#1
0
        public void Fibonaci_ArrangeResults_Success(int number, int expected)
        {
            // arrange
            var fiboCalculator = new FiboCalculator();

            // act
            var result = fiboCalculator.Fibonaci(number);

            // assert
            Assert.Equal(expected, result);
        }
示例#2
0
        static void Main(string[] args)
        {
            var fc = new FiboCalculator();

            for (int i = 3; i < 10; i++)
            {
                Console.WriteLine(fc.Fibonaci(i));
            }

            Console.ReadLine();
        }
示例#3
0
        public void Fibonaci_Scenario_Expected()
        {
            // arrange
            var fiboCalculator = new FiboCalculator();

            // act
            var result = fiboCalculator.Fibonaci(5);

            // assert
            Assert.Equal(5, result);
        }
        public void Fibonaci_Scenario_Expected(int number, int expected)
        {
            // arrange
            var fiboCalculator = new FiboCalculator();

            // act
            var result = fiboCalculator.Fibonaci(number);

            // assert
            Assert.Equal(expected, result);
        }