public void Test_Check_WhenStringIsPalindromeEvenSize() { var s = "abccba"; var isPalindrome = Palindrome.Check(s); Assert.AreEqual(true, isPalindrome); }
public void Test_Check_WhenStringIsNotPalindromeOddSize() { var s = "abcda"; var isPalindrome = Palindrome.Check(s); Assert.AreEqual(false, isPalindrome); }
public void Palindrome() { Palindrome pal = new Palindrome(); var result = pal.Check(new SimpleLinkedList <int>(new int[] { 1, 2, 1 })); Assert.True(result); }
public void Give_12321_Expected_True_Test() { bool Expected = true; string give = "12321"; Palindrome text = new Palindrome(); bool actual = text.Check(give); Assert.AreEqual(Expected, actual); }
public void PalindromeTrue() { var p = new Palindrome() { Name = "racecar " }; var actual = Palindrome.Check(p); Assert.True(actual); }
public void PalindromeTrueFalse1() { var p = new Palindrome() { Name = "fkjfhk" }; var actual = Palindrome.Check(p); Assert.True(actual); }
public void PalindromeTruePunctuation() { var p = new Palindrome() { Name = "RaceCar!racecar" }; var actual = Palindrome.Check(p); Assert.True(actual); }
public void PalindromeTrueNumbers() { var p = new Palindrome() { Name = "1234554321" }; var actual = Palindrome.Check(p); Assert.True(actual); }
public void PalindromeTrueSentence() { var p = new Palindrome() { Name = "Never Odd or Even" }; var actual = Palindrome.Check(p); Assert.True(actual); }
public void PalindromeTrueCase() { var p = new Palindrome() { Name = "CiviC" }; var actual = Palindrome.Check(p); Assert.True(actual); }