Esempio n. 1
0
            public void ShouldReturnCorrectResult()
            {
                var    problem = new Problem0008();
                object result  = problem.GetResult();

                result.Should().Be(23514624000);
            }
Esempio n. 2
0
        public void Problem0008Test()
        {
            //var r = Problem0008.Multiply("12345");
            //Trace.WriteLine(r);
            var result = Problem0008.Solution();

            Trace.WriteLine(result);
        }
Esempio n. 3
0
        public void ComputeSolutionProblem8_With4AdjacentDigits_Returns5832()
        {
            var numberOfAdjacentDigits = 4;
            var expectedResult         = 5832;

            var result = new Problem0008(numberOfAdjacentDigits).ComputeSolution();

            result.Should().Be(expectedResult);
        }