Beispiel #1
0
        public void FactorialTest()
        {
            var numbers    = new[] { 1, 2, 3, 4, 5 };
            var factorials = new[] { 1, 2, 6, 24, 120 };

            for (int i = 0; i < numbers.Length; i++)
            {
                Assert.AreEqual(factorials[i], EquationSolver.GetFactorial(numbers[i]));
            }
        }