public static void Main() { Console.WriteLine("Give me a word and I'll check if it's a palindrome!"); string inputString = Console.ReadLine(); if (IsPalindrome.CheckForPalindrome(inputString) == true) { Console.WriteLine($"{inputString} is a palindrome!"); } else { Console.WriteLine($"{inputString} is not a palindrome!"); } }
public void IsPalindrome_CheckForPalindrome_True() { IsPalindrome testIsPalindrome = new IsPalindrome(); Assert.AreEqual(true, testIsPalindrome.CheckForPalindrome("civic")); }
public void IsPalindrome_CheckForNotPalindrome_False() { IsPalindrome testNotPalindrom = new IsPalindrome(); Assert.AreEqual(false, testNotPalindrom.CheckForPalindrome("car")); }