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=")); }
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")); }
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")); }