public void ReturnFalseWhenInputIsNotPalindrome() { RecursivePalindromeStrategy strategy = new RecursivePalindromeStrategy(); string input = "ab"; bool isInputPalindrome = strategy.CheckIfInputIsPalindrome(input); Assert.False(isInputPalindrome); }
public void ReturnTrueWhenInputIsPalindrome() { RecursivePalindromeStrategy strategy = new RecursivePalindromeStrategy(); string input = "Madam"; bool isInputPalindrome = strategy.CheckIfInputIsPalindrome(input); Assert.True(isInputPalindrome); }
public void ReturnTrueWhenInputIsPalindromeAndContainsPunctuations() { RecursivePalindromeStrategy strategy = new RecursivePalindromeStrategy(); string input = "to!p sp#ot"; bool isInputPalindrome = strategy.CheckIfInputIsPalindrome(input); Assert.True(isInputPalindrome); }