public void ShouldCallPalindromeProductToCheckIfAProductIsPalindrome() { //When _sut.GetLargestPalindromeFromTheProductOfTwoThreeDigitNumbers(); //Then _palindromeProductMock.Verify(x => x.IsPalindromeProduct(It.IsAny <int>()), Times.AtLeastOnce); }
public void ShouldGetTheLargestPalindromeMadeFromTheProductOfTwoThreeDigitNumbers() { //When var result = _sut.GetLargestPalindromeFromTheProductOfTwoThreeDigitNumbers(); //Then const int expectedResult = 906609; Assert.Equal(expectedResult, result); }