Пример #1
0
        public void StringIsPalindrome()
        {
            var           input  = new Palindromes("aba");
            List <string> result = new List <string> {
                "a", "b", "a", "aba"
            };

            Assert.Equal(result, input.GetPalindromes());
        }
Пример #2
0
        public void MultiplePalindroms()
        {
            var           input  = new Palindromes("aabaac");
            List <string> result = new List <string> {
                "a", "a", "b", "a", "a", "c", "aa", "aa", "aba", "aabaa"
            };

            Assert.Equal(result, input.GetPalindromes());
        }