Example #1
0
        public void Given_a_string_when_find_longest_palindromic_then_return_substirng_in_given_string(string s, string expected)
        {
            var solution = new PalindromicSubstring();
            var actual   = solution.LongestPalindrome(s);

            Assert.Equal(expected, actual);
        }
Example #2
0
 public void TestPalindromicSubstring()
 {
     for (int i = 0; i < palindromicInputs.Count; i++)
     {
         StringAssert.AreEqualIgnoringCase(palindromicOutputs[i], PalindromicSubstring.LongestPalindrome(palindromicInputs[i]));
     }
 }