public void Output_field_with_hint() { var t = new DefaultFormTemplate(); var result = t.Field(new HtmlString("labelhtml"), new HtmlString("elementhtml"), new HtmlString("validationhtml"), null, new FieldConfiguration().WithHint("hello").ToReadonly(), false); HtmlApprovals.VerifyHtml(result.ToHtmlString()); }
public void Output_field_with_prepended_and_appended_html() { var t = new DefaultFormTemplate(); var result = t.Field(new HtmlString("labelhtml"), new HtmlString("elementhtml"), new HtmlString("validationhtml"), null, new FieldConfiguration() .Prepend(new HtmlString("<1>")).Prepend(new HtmlString("<2>")) .Append(new HtmlString("<3>")).Append(new HtmlString("<4>")) .ToReadonly(), false ); HtmlApprovals.VerifyHtml(result.ToHtmlString()); }
public void Output_field() { var t = new DefaultFormTemplate(); var result = t.Field(new HtmlString("labelhtml"), new HtmlString("elementhtml"), new HtmlString("validationhtml"), null, null, false); HtmlApprovals.VerifyHtml(result.ToHtmlString()); }