public void matches()
        {
            var match = new EndsWithPatternMatch(FileChangeCategory.AppDomain, "*.asset.config");

            match.Matches("something.asset.config").ShouldBeTrue();
            match.Matches("something.Asset.config").ShouldBeTrue();
            match.Matches("foo.asset.config").ShouldBeTrue();
            match.Matches("bar.asset.config").ShouldBeTrue();
            match.Matches("something.foo.config").ShouldBeFalse();
            match.Matches("something.asset.bar").ShouldBeFalse();
        }
Example #2
0
 protected bool Equals(EndsWithPatternMatch other)
 {
     return(_category == other._category && string.Equals(_match, other._match));
 }
 protected bool Equals(EndsWithPatternMatch other)
 {
     return _category == other._category && string.Equals(_match, other._match);
 }