Beispiel #1
0
        public void TestAttributesNoParamsAtAll()
        {
            var tag        = new Remove();
            var reflection = new TagModel(this);

            tag.Evaluate(reflection);
        }
Beispiel #2
0
        public void TestAttributesSetByPropertyPageScope()
        {
            var tag = new Remove();

            tag.Var   = new MockAttribute(new Property("Var"));
            tag.Scope = new MockAttribute(new Property("SessionScope"));

            _page.Add("value", "Value");
            var reflection = new TagModel(this, new MockSessionState());

            tag.Evaluate(reflection);
            Assert.That(reflection["Page." + Var], Is.Null);
        }
Beispiel #3
0
        public void TestAttributesSetByPropertyPageScope()
        {
            var tag = new Remove();
            tag.Var = new MockAttribute(new Property("Var"));
            tag.Scope = new MockAttribute(new Property("SessionScope"));

            _page.Add("value", "Value");
            var reflection = new TagModel(this, new MockSessionState());
            tag.Evaluate(reflection);
            Assert.That(reflection["Page." + Var], Is.Null);
        }
Beispiel #4
0
 public void TestAttributesNoParamsAtAll()
 {
     var tag = new Remove();
     var reflection = new TagModel(this);
     tag.Evaluate(reflection);
 }