public void DuplicateException() { var m = new MatchingPointPatternMatcher(); Assert.Throws <ConfigurationException>(() => m.Matches(new[] { "aa*", "*aa" }, "aaa")); }
[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)); }