示例#1
0
        public void Should_match_tag_prefix_with_at()
        {
            var matcher = new TagFilterMatcher();

            var tags = new string[] { "mytag:foo" };

            matcher.MatchPrefix("@mytag", tags).Should().BeTrue();
        }
示例#2
0
        public void Should_not_match_null_tag_list()
        {
            var matcher = new TagFilterMatcher();

            string[] tags = null;

            matcher.MatchPrefix("mytag", tags).Should().BeFalse();
        }
示例#3
0
        public void Should_not_match_empty_tag_list()
        {
            var matcher = new TagFilterMatcher();

            var tags = new string[0];

            matcher.MatchPrefix("mytag", tags).Should().BeFalse();
        }
示例#4
0
        public void Should_not_match_not_included_tag()
        {
            var matcher = new TagFilterMatcher();

            var tags = new string[] { "othertag" };

            matcher.MatchPrefix("mytag", tags).Should().BeFalse();
        }
示例#5
0
        public void Should_match_tag_case_insensitive()
        {
            var matcher = new TagFilterMatcher();

            var tags = new string[] { "MyTag" };

            matcher.MatchPrefix("mytag", tags).Should().BeTrue();
        }
示例#6
0
        public void Should_match_simple_tag()
        {
            var matcher = new TagFilterMatcher();

            var tags = new string[] { "mytag" };

            matcher.MatchPrefix("mytag", tags).Should().BeTrue();
        }