Beispiel #1
0
        public void Test_Non_Palindrome()
        {
            //arrange
            var nonPalindromeString = "fee fi fo fum";
            var expected            = false;

            //act
            var actual = Palindrome.Checkpalindrome(nonPalindromeString);

            //assert
            Assert.True(actual == expected);
        }
Beispiel #2
0
        public void Test_Palindrome()
        {
            //arrange
            var palindromeString = "A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal-Panama!";
            var expected         = true;

            //act
            var actual = Palindrome.Checkpalindrome(palindromeString);

            //assert
            Assert.True(actual == expected);
        }
 static void Main(string[] args)
 {
     System.Console.WriteLine(Palindrome.Checkpalindrome(args[0]));
 }