Exemple #1
0
        public void Factorial_Works()
        {
            //  arrange
            int n    = 5;
            int zero = 0;

            //  act
            int f = PMath.Factorial(n);
            int z = PMath.Factorial(zero);

            //  assert
            Assert.AreEqual(5 * 4 * 3 * 2, f);
            Assert.AreEqual(1, z);
        }