Beispiel #1
0
        public void NegetiveTest()
        {
            string name = "chandru";
            bool isPalindrom = Palindrom.CheckPalindrome(name);
            Assert.False(isPalindrom);

        }
Beispiel #2
0
        public void PositiveTest()
        {
            string name = "abcba";
            bool isPalindrom = Palindrom.CheckPalindrome(name);
            Assert.True(isPalindrom);

        }
Beispiel #3
0
        public void CheckPalindrome(String input)
        {
            //Arrange
            Palindrom palindrom = new Palindrom();
            bool      expected  = true;
            //Act
            bool actual = palindrom.CheckPalindrome(input);

            //Assert
            Assert.AreEqual(expected, actual);
        }