Example #1
0
        public void Test()
        {
            var factorial = new WhyCombinator <int, int>(fac => n => n < 3 ? n : n * fac(n - 1));

            Assert.That(factorial.Execute(5), Is.EqualTo(120));
        }
Example #2
0
        public void Test()
        {
            var factorial = new WhyCombinator<int, int>(fac => n => n < 3 ? n : n * fac(n - 1));

            Assert.That(factorial.Execute(5), Is.EqualTo(120));
        }