Пример #1
0
        public void FibonacciRec_Test_Fact()
        {
            int num1    = 1;
            int num2    = 2;
            int numFibs = 3;

            Assert.Equal(41, r.FibonacciRec(num1, num2, numFibs));
        }
Пример #2
0
        public void FibonacciRecTest()
        {
            int num1    = 1;
            int num2    = 5;
            int numFibs = 10;

            Assert.Equal(36823, r.FibonacciRec(num1, num2, numFibs));
        }
Пример #3
0
        public void FibonacciRecTest1()
        {
            RecursiveCalc r        = new RecursiveCalc();
            int           expected = 41;
            int           num1     = 1;
            int           num2     = 2;
            int           numFibs  = 3;

            Assert.Equal(expected, r.FibonacciRec(num1, num2, numFibs));
        }
Пример #4
0
        [InlineData(3961680, 1, 7, 15)]    // --- This test is designed to FAIL, actual expected number should be 3961681

        public void FibonacciRecTest2(int expected, int num1, int num2, int numFibs)
        {
            RecursiveCalc r = new RecursiveCalc();

            Assert.Equal(expected, r.FibonacciRec(num1, num2, numFibs));
        }