Exemplo n.º 1
0
        public void Test_02_verify_that_tattarrattat_returns_one_plaindrome()
        {
            // Arrange
            IPalindromeLibrary library = new PalindromeLibrary();
            var sampleString           = "tattarrattat";


            // Act
            var allPalinDromes = library.FindPalindromeList(sampleString).ToArray();

            foreach (var palinDrome in allPalinDromes)
            {
                Console.WriteLine(palinDrome);
            }



            // Assert
            Assert.AreEqual(1, allPalinDromes.Length);
        }
Exemplo n.º 2
0
        public void Test_02_Test_01_verify_that_provided_sample_string_returns_six_palindromes()
        {
            // Arrange
            IPalindromeLibrary library = new PalindromeLibrary();
            var sampleString           = "sqrrqabccbatudefggfedvwhijkllkjihxymnnmzpop";


            // Act
            var allPalinDromes = library.FindPalindromeList(sampleString).ToArray();

            foreach (var palinDrome in allPalinDromes)
            {
                Console.WriteLine(palinDrome);
            }



            // Assert
            Assert.AreEqual(6, allPalinDromes.Length);
        }