Exemple #1
0
            public void ShouldReturnCorrectResult()
            {
                var    problem = new Problem0002();
                object result  = problem.GetResult();

                result.Should().Be(4613732);
            }
Exemple #2
0
        public void Problem0002Test()
        {
            int  n = 2000000;
            long s;
            long f = Problem0002.Fib(n, out s);

            Trace.WriteLine(string.Format("{0} - {1} - {2}", n, f, s));
        }
Exemple #3
0
        public void Problem0002ListTest()
        {
            for (int i = 1; i < 10; i++)
            {
                long s;
                long f = Problem0002.Fib(i, out s);

                Trace.WriteLine(string.Format("{0} - {1} - {2}", i, f, s));
            }
        }