Пример #1
0
        public void Factorial1()
        {
            var retFunc = Factorial.GetFactorialFunction();

            Assert.AreEqual(1, retFunc(1));
        }
Пример #2
0
        public void Factorial6()
        {
            var retFunc = Factorial.GetFactorialFunction();

            Assert.AreEqual(720, retFunc(6));
        }
Пример #3
0
        public void Factorial5()
        {
            var retFunc = Factorial.GetFactorialFunction();

            Assert.AreEqual(120, retFunc(5));
        }
Пример #4
0
        public void Factorial4()
        {
            var retFunc = Factorial.GetFactorialFunction();

            Assert.AreEqual(24, retFunc(4));
        }
Пример #5
0
        public void Factorial3()
        {
            var retFunc = Factorial.GetFactorialFunction();

            Assert.AreEqual(6, retFunc(3));
        }
Пример #6
0
        public void Factorial2()
        {
            var retFunc = Factorial.GetFactorialFunction();

            Assert.AreEqual(2, retFunc(2));
        }