Bari.Core.Test.Model.SourceSetIgnoreListTest.SingleIgnoreExpression C# (CSharp) Method

SingleIgnoreExpression() private method

private SingleIgnoreExpression ( ) : void
return void
        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();
        }