コード例 #1
0
        public void find_the_sum_of_even_fibonacci_numbers_less_than_four_million()
        {
            var instance = new Problem002();

            var sum = instance.GetSumOfEvenFibonacciNumbers(4000000);

            Assert.AreEqual(4613732, sum);
        }
コード例 #2
0
        public void find_the_sum_of_even_fibonacci_numbers_less_than_ten()
        {
            var instance = new Problem002();

            var sum = instance.GetSumOfEvenFibonacciNumbers(10);

            Assert.AreEqual(10, sum);
        }