public void ShouldReturnCorrectResult() { var problem = new Problem0004(); object result = problem.GetResult(); result.Should().Be(906609); }
public void Problem0004Test() { int i, j; var result = Problem0004.Solution(out i, out j); Trace.WriteLine(string.Format("{0} = {1}*{2} ", result, i, j)); }
public void ComputeSolutionProblem4_With2DigitsNumbers_Returns9009() { var numberOfDigits = 2; var expectedResult = 9009; var result = new Problem0004(numberOfDigits).ComputeSolution(); result.Should().Be(expectedResult); }
public void Problem0004IsPalindromeTest(int num, bool result) { Assert.That(Problem0004.IsPalindrome(num), Is.EqualTo(result)); }