public void SingleIgnoreExpression() { var ignoreList = new SourceSetIgnoreList(); ignoreList.Add(@".+\.tmp$"); ignoreList.IsIgnored(new SuiteRelativePath(@"a\b\c.dll.tmp")).Should().BeTrue(); ignoreList.IsIgnored(new SuiteRelativePath(@"x.tmp")).Should().BeTrue(); ignoreList.IsIgnored(new SuiteRelativePath(@"a\tmp\c.dll")).Should().BeFalse(); ignoreList.IsIgnored(new SuiteRelativePath(@"tmp")).Should().BeFalse(); }
public SourceSetIgnoreList Get(SourceSetType type) { SourceSetIgnoreList ignoreList; if (!ignoreLists.TryGetValue(type, out ignoreList)) { ignoreList = new SourceSetIgnoreList(); ignoreLists.Add(type, ignoreList); } return ignoreList; }
public SourceSetIgnoreList Get(SourceSetType type) { SourceSetIgnoreList ignoreList; if (!ignoreLists.TryGetValue(type, out ignoreList)) { ignoreList = new SourceSetIgnoreList(); ignoreLists.Add(type, ignoreList); } return(ignoreList); }