public void fooShouldNotMatchEmptyTags() { TagExpression e = new TagExpression(new List <string> { "@foo" }); Assert.IsFalse(e.eval(new List <Tag> { })); }
public void notFooShouldNotMatchFoo() { TagExpression e = new TagExpression(new List <string> { "~@foo" }); Assert.IsFalse(e.eval(new List <Tag> { new Tag("@foo", 1) })); }
public void notFooShouldMatchBar() { TagExpression e = new TagExpression(new List <string> { "~@foo" }); Assert.IsTrue(e.eval(new List <Tag> { new Tag("@bar", 1) })); }
public void notFooShouldNotMatchFoo() { TagExpression e = new TagExpression(new List<string> { "~@foo" }); Assert.IsFalse(e.eval(new List<Tag> { new Tag("@foo", 1) })); }
public void notFooShouldMatchBar() { TagExpression e = new TagExpression(new List<string> { "~@foo" }); Assert.IsTrue(e.eval(new List<Tag> { new Tag("@bar", 1) } )); }
public void fooShouldNotMatchEmptyTags() { TagExpression e = new TagExpression(new List<string> { "@foo" }); Assert.IsFalse(e.eval(new List<Tag> { })); }