public void TestSingleCharacterPalindrome() { string s = "a"; bool ret = PalindromeRecognizer.IsPalindrome(s); Assert.True(ret); }
public void TestNonPalindrome() { string s = "abxvba"; bool ret = PalindromeRecognizer.IsPalindrome(s); Assert.False(ret); }
public void TestOddLengthPalindrome() { string s = "abxba"; bool ret = PalindromeRecognizer.IsPalindrome(s); Assert.True(ret); }
public void TestEmptyStringPalindrome() { string s = string.Empty; bool ret = PalindromeRecognizer.IsPalindrome(s); Assert.True(ret); }
public void TestNullStringPalindromException() { string s = null; Exception ex = Assert.Throws <ArgumentNullException>(() => PalindromeRecognizer.IsPalindrome(s)); }