Пример #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> { }));
 }