public void Parse_ShouldReturnEqualsRule_IfEqualsRuleProvided()
        {
            var actual = ContentExcludeExcludeRule.Parse("=/test");

            Assert.False(actual.ShouldExcludeFromContent("/tes"));
            Assert.True(actual.ShouldExcludeFromContent("/test"));
            Assert.False(actual.ShouldExcludeFromContent("/test1"));
        }
        public void Parse_ShouldReturnEndsWithRule_IfEndsWithRuleProvided()
        {
            var actual = ContentExcludeExcludeRule.Parse("$test");

            Assert.False(actual.ShouldExcludeFromContent("test1"));
            Assert.True(actual.ShouldExcludeFromContent("test"));
            Assert.True(actual.ShouldExcludeFromContent("1test"));
        }
 public void Parse_ShouldThrowFormatException_IfEmptyMatchPatternProvided()
 {
     Assert.Throws <FormatException>(() => ContentExcludeExcludeRule.Parse("^"));
 }
 public void Parse_ShouldThrowFormatException_IfUnknownCheckTypeProvided()
 {
     Assert.Throws <FormatException>(() => ContentExcludeExcludeRule.Parse("%test"));
 }