Example #1
0
        public void Problem2()
        {
            var result = Sequences.Fibbonaci()
                         .TakeWhile(v => v < 4000000)
                         .Where(v => v % 2 == 0)
                         .Sum();

            if (result != 4613732)
            {
                throw new InvalidOperationException("Problem not solved correctly");
            }
        }