public void IsPalindromeTest_SingleDigit() { var solution = new _009_PalindromeNumber(); var result = solution.IsPalindrome(0); Assert.IsTrue(result); result = solution.IsPalindrome(1); Assert.IsTrue(result); }
public void IsPalindromeTest_MultipleDigit() { var solution = new _009_PalindromeNumber(); var result = solution.IsPalindrome(11); Assert.IsTrue(result); result = solution.IsPalindrome(121); Assert.IsTrue(result); result = solution.IsPalindrome(1231); Assert.IsFalse(result); }
public void IsPalindromeTest_NegativeNumber() { var solution = new _009_PalindromeNumber(); var result = solution.IsPalindrome(-1); Assert.IsFalse(result); }