示例#1
0
        public void DateAutoValueTestTag_Should_Be_Null_Safe()
        {
            var _model = new TagModel(new Hashtable());
            var tag    = new DateAutoValueTestTag();

            Assert.That(tag.Evaluate(_model), Is.EqualTo("date="));
        }
示例#2
0
 public void DateAutoValueTestTag_Should_Pass_Date()
 {
     var _model = new TagModel(new Hashtable() {
         { "SomeDate", new DateTime(1979,10,2)}
     });
     var tag = new DateAutoValueTestTag();
     tag.SomeDateValue = new MockAttribute(new Property("SomeDate"));
     Assert.That(tag.Evaluate(_model), Is.EqualTo("date=02|10|1979"));
 }
示例#3
0
        public void DateAutoValueTestTag_Should_Pass_Date()
        {
            var _model = new TagModel(new Hashtable()
            {
                { "SomeDate", new DateTime(1979, 10, 2) }
            });
            var tag = new DateAutoValueTestTag();

            tag.SomeDateValue = new MockAttribute(new Property("SomeDate"));
            Assert.That(tag.Evaluate(_model), Is.EqualTo("date=02|10|1979"));
        }
示例#4
0
 public void DateAutoValueTestTag_Should_Be_Null_Safe()
 {
     var _model = new TagModel(new Hashtable());
     var tag = new DateAutoValueTestTag();
     Assert.That(tag.Evaluate(_model), Is.EqualTo("date="));
 }