public void TestTrue4() { //Arrange string s = "never odd, or even."; TestPalindrome p = new TestPalindrome(); //Act bool pal = p.TestPal(s); //Assert Assert.IsTrue(pal); }
public void TestFalse1() { //Arrange string s = "one two one"; TestPalindrome p = new TestPalindrome(); //Act bool pal = p.TestPal(s); //Assert Assert.IsFalse(pal); }
public void TestTrue3() { //Arrange string s = "1221"; TestPalindrome p = new TestPalindrome(); //Act bool pal = p.TestPal(s); //Assert Assert.IsTrue(pal); }
public void TestFalse2() { //Arrange string s = "123abccba123"; TestPalindrome p = new TestPalindrome(); //Act bool pal = p.TestPal(s); //Assert Assert.IsFalse(pal); }
public static void Main() { Console.WriteLine("please Enter a word"); string input = Console.ReadLine(); TestPalindrome test = new TestPalindrome(input); test.RemoveCapitals(); test.ReverseString(); Console.WriteLine((test.PalindromeCheck()).ToString()); }
public void TestPrepare() { //Arrange string s = "Welcome, to the game."; string e = "welcometothegame"; TestPalindrome p = new TestPalindrome(); //Act s = p.Prepare(s); //Assert Assert.AreEqual(e, s); }
public void TestReverse() { //Arrange string s = "hello world"; string r = "dlrow olleh"; TestPalindrome p = new TestPalindrome(); //Act s = p.Reverse(s); //Assert Assert.AreEqual(r, s); }