コード例 #1
0
        public void DuplicateException()
        {
            var m = new MatchingPointPatternMatcher();

            Assert.Throws <ConfigurationException>(() =>
                                                   m.Matches(new[] { "aa*", "*aa" }, "aaa"));
        }
コード例 #2
0
        [TestCase("aax", "aa*", "a*", "aa*")] // greedy
        public void Matches(string search, string expected, params string[] patterns)
        {
            var m = new MatchingPointPatternMatcher();

            Assert.That(m.Matches(patterns, search), Is.EqualTo(expected));
        }