Beispiel #1
0
        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();
        }
Beispiel #2
0
        public SourceSetIgnoreList Get(SourceSetType type)
        {
            SourceSetIgnoreList ignoreList;
            if (!ignoreLists.TryGetValue(type, out ignoreList))
            {
                ignoreList = new SourceSetIgnoreList();
                ignoreLists.Add(type, ignoreList);
            }

            return ignoreList;
        }
Beispiel #3
0
        public SourceSetIgnoreList Get(SourceSetType type)
        {
            SourceSetIgnoreList ignoreList;

            if (!ignoreLists.TryGetValue(type, out ignoreList))
            {
                ignoreList = new SourceSetIgnoreList();
                ignoreLists.Add(type, ignoreList);
            }

            return(ignoreList);
        }