예제 #1
0
        public void fooShouldNotMatchEmptyTags()
        {
            TagExpression e = new TagExpression(new List <string>  {
                "@foo"
            });

            Assert.IsFalse(e.eval(new List <Tag> {
            }));
        }
예제 #2
0
        public void notFooShouldNotMatchFoo()
        {
            TagExpression e = new TagExpression(new List <string> {
                "~@foo"
            });

            Assert.IsFalse(e.eval(new List <Tag> {
                new Tag("@foo", 1)
            }));
        }
예제 #3
0
        public void notFooShouldMatchBar()
        {
            TagExpression e = new TagExpression(new List <string> {
                "~@foo"
            });

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