Beispiel #1
0
        public void TestFactorial_minus_10()
        {
            int a = -10;
            int correct_result = 1;

            Factorial factor        = new Factorial();
            int       actual_result = factor.Calculate_Factorial(a);
        }
Beispiel #2
0
        public void TestFactorial_0()
        {
            int a = 0;
            int correct_result = 1;

            Factorial factor        = new Factorial();
            int       actual_result = factor.Calculate_Factorial(a);

            Assert.AreEqual(correct_result, actual_result);
        }