public void CheckIfPalindrome_InputString_EvenCharacters_False() { //Arrange Challenge2 challenge2 = new Challenge2(); string stringToCheck = "abbaabbb"; bool expected = false; //Act bool actual = challenge2.CheckIfPalindrome(stringToCheck); //Assert Assert.AreEqual(expected, actual); }
public void CheckIfPalindrome_InputString_OddCharacters_True() { //Arrange Challenge2 challenge2 = new Challenge2(); string stringToCheck = "madam"; bool expected = true; //Act bool actual = challenge2.CheckIfPalindrome(stringToCheck); //Assert Assert.AreEqual(expected, actual); }