Пример #1
0
        public void Given_pattern_str_When_match_Then_return()
        {
            var pattern = "abba";
            var str     = "dog cat cat dog";

            Assert.AreEqual(true, WordPattern.FindWordPattern(pattern, str));
        }
Пример #2
0
        public void Given_string_same_When_match_Then_return_false()
        {
            var pattern = "abba";
            var str     = "dog dog dog dog";

            Assert.AreEqual(false, WordPattern.FindWordPattern(pattern, str));
        }