public void Should_match_tag_prefix() { var matcher = new TagFilterMatcher(); var tags = new string[] {"mytag:foo"}; matcher.MatchPrefix("mytag", tags).Should().BeTrue(); }
public void Should_match_simple_tag_with_at() { var matcher = new TagFilterMatcher(); var tags = new string[] {"mytag"}; matcher.MatchPrefix("@mytag", tags).Should().BeTrue(); }
public void Should_not_match_null_tag_list() { var matcher = new TagFilterMatcher(); string[] tags = null; matcher.MatchPrefix("mytag", tags).Should().BeFalse(); }
public void Should_not_match_empty_tag_list() { var matcher = new TagFilterMatcher(); var tags = new string[0]; matcher.MatchPrefix("mytag", tags).Should().BeFalse(); }
public void Should_not_match_not_included_tag() { var matcher = new TagFilterMatcher(); var tags = new string[] {"othertag"}; matcher.MatchPrefix("mytag", tags).Should().BeFalse(); }
public void Should_match_tag_case_insensitive() { var matcher = new TagFilterMatcher(); var tags = new string[] {"MyTag"}; matcher.MatchPrefix("mytag", tags).Should().BeTrue(); }