Пример #1
0
        public void RunProblem2Test_check_solution()
        {
            // arrange
            var sut = new Solution0002();

            // act
            var sum = sut.SumOfEvenFibonacciNumbers(4000000);

            // assert
            Assert.Equal(4613732, sum);
        }
Пример #2
0
        public void RunProblem2Test_check_small_example()
        {
            // arrange
            var sut = new Solution0002();

            // act
            var sum = sut.SumOfEvenFibonacciNumbers(10);

            // assert
            Assert.Equal(10, sum);
        }