public void HtmlTag_Input() { var helper = new HtmlTagHelper(); var tagName = "input"; var name = "name1"; var tag = helper.HtmlTag(tagName, name); AssertValid(tag, tagName, name); }
public void HtmlTag_Any() { var helper = new HtmlTagHelper(); var tagName = "any"; var name = "name2"; var tag = helper.HtmlTag(tagName, name); AssertValid(tag, tagName, name); }
public void HtmlTag_Input_Value_Null() { var model = new Model1() { PropInt = null }; var helper = new HtmlTagHelper(model); var tagName = "input"; var name = "PropInt"; var tag = helper.HtmlTag(tagName, name); AssertValid(tag, tagName, name, value: model.PropInt); }
public void HtmlTag_Input_Value_Date() { var model = new Model1() { PropDate = DateTime.UtcNow }; var helper = new HtmlTagHelper(model); var tagName = "input"; var name = "PropDate"; var tag = helper.HtmlTag(tagName, name); AssertValid(tag, tagName, name, value: model.PropDate); }