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