Exemple #1
0
        public void IsAPalindromeTest()
        {
            var p      = new Palindrome();
            var answer = p.IsAPalindrome("racecar");

            AssertTrue(answer);
        }
        public void MyTest(string word, bool expected)
        {
            //arrange create instant of Palindrome class
            var test = new Palindrome();
            //act call the palidrome method
            var actual = test.IsAPalindrome(word);

            //assert - compare expected and actual
            Assert.Equal(expected, actual);
        }
Exemple #3
0
        public void PalindromeTester(string word, bool expected)
        {
            //Arrange
            var sut = new Palindrome();

            //Act
            var actual = sut.IsAPalindrome(word);

            //Assert
            Assert.Equal(expected, actual);
        }
Exemple #4
0
        public void PalindromeTest(string word, bool expected)
        {
            //arrange
            var sut = new Palindrome();

            //act
            var actual = sut.IsAPalindrome(word);

            //assert
            Assert.Equal(actual, expected);
        }
Exemple #5
0
        public void TestingForAPalindrome(string word, bool expected)
        {
            //Arrange


            //Act
            var actual = Palindrome.IsAPalindrome(word);

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