Esempio n. 1
0
        public void parses_multiple_tags_filters()
        {
            var tags = new Tags();
            tags.Parse("myInclude1,~myExclude1,myInclude2,~myExclude2,");

            tags.should_tag_as_included("myInclude1");
            tags.should_tag_as_excluded("myExclude1");

            tags.should_tag_as_included("myInclude2");
            tags.should_tag_as_excluded("myExclude2");

            tags.IncludeTags.Count.should_be(2);
            tags.ExcludeTags.Count.should_be(2);
        }
Esempio n. 2
0
 public void parses_single_include_tag_filters()
 {
     var tags = new Tags();
     tags.Parse("mytag");
     tags.should_tag_as_included("mytag");
 }