Exemplo n.º 1
0
        public void FactorialRec_Test_Fact()
        {
            int input = 4;
            int ans   = 3;

            Assert.Equal(72, r.FactorialRec(input, ans));
        }
Exemplo n.º 2
0
        public void FactorialRecTestFact()
        {
            int input = 4;
            int ans   = 1;

            Assert.Equal(24, r.FactorialRec(input, ans));
        }
Exemplo n.º 3
0
        public void FactorialRecTest2(int expected, int input)
        {
            RecursiveCalc rec = new RecursiveCalc();
            int           ans = 1;

            Assert.Equal(expected, rec.FactorialRec(input, ans));
        }