示例#1
0
        public void TestFactorialZero()
        {
            int  k      = 0;
            long result = MathExtention.Factorial(k);

            Assert.AreEqual(result, 1);
        }
示例#2
0
        public void TestFactorialNegative()
        {
            int  k      = -1;
            long result = MathExtention.Factorial(k);

            Assert.AreEqual(result, 0);
        }