Example #1
0
        static void Main(string[] args)
        {
            string word;

            System.Console.WriteLine("Enter a word: ");
            word = System.Console.ReadLine();
            PalindromeGame pal = new PalindromeGame(word);

            Console.WriteLine($"Is Word Palindrome?: {pal.PlayPalindrome()}");
        }
        public void test1()
        {
            // Arrange --> Expected Value
            PalindromeGame pal1     = new PalindromeGame("noon");
            bool           expected = true;
            // Act --> Actual Value
            bool actual = pal1.PlayPalindrome();

            // Assert
            Assert.True(expected.Equals(actual));
        }
        public void test3()
        {
            // Arrange --> Expected Value
            PalindromeGame pal3     = new PalindromeGame("cell");
            bool           expected = false;
            // Act --> Actual Value
            bool actual = pal3.PlayPalindrome();

            // Assert
            Assert.True(expected.Equals(actual));
        }