public void IsPalindrome_NullArgument() { var target = new Problem1(); target.IsPalindrome(null); }
public void IsPalindrome_EmptyStringIsAPalindrome() { var target = new Problem1(); Assert.IsTrue(target.IsPalindrome(string.Empty)); }
public void IsPalindrome_NotAPalindrome() { var target = new Problem1(); Assert.IsFalse(target.IsPalindrome("hello world")); }
public void IsPalindrome_Palindromes() { var target = new Problem1(); Assert.IsTrue(target.IsPalindrome("A man a plan a canal Panama")); Assert.IsTrue(target.IsPalindrome("Z")); Assert.IsTrue(target.IsPalindrome("A Toyotas a Toyota")); Assert.IsTrue(target.IsPalindrome("Go hang a salami Im a lasagna hog")); Assert.IsTrue(target.IsPalindrome("zzzxxyyayyxxzzz")); }