Example #1
0
        public void SumOfEvenFibonacciNumbersLessOrEqualToN_NEquals4000000_SumIs4613732()
        {
            var expected = 4613732;
            var actual   = new P002().SumOfEvenFibonacciNumbersLessThanN(4000000);

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void SumOfEvenFibonacciNumbersLessOrEqualToN_NEquals10_SumIs10()
        {
            var expected = 10;
            var actual   = new P002().SumOfEvenFibonacciNumbersLessThanN(10);

            Assert.AreEqual(expected, actual);
        }