コード例 #1
0
            public void ShouldReturnCorrectResult()
            {
                var    problem = new Problem0004();
                object result  = problem.GetResult();

                result.Should().Be(906609);
            }
コード例 #2
0
        public void Problem0004Test()
        {
            int i, j;
            var result = Problem0004.Solution(out i, out j);

            Trace.WriteLine(string.Format("{0} = {1}*{2} ", result, i, j));
        }
コード例 #3
0
        public void ComputeSolutionProblem4_With2DigitsNumbers_Returns9009()
        {
            var numberOfDigits = 2;
            var expectedResult = 9009;

            var result = new Problem0004(numberOfDigits).ComputeSolution();

            result.Should().Be(expectedResult);
        }
コード例 #4
0
 public void Problem0004IsPalindromeTest(int num, bool result)
 {
     Assert.That(Problem0004.IsPalindrome(num), Is.EqualTo(result));
 }