Пример #1
0
        public void Begin_form_without_enctype()
        {
            var t = new TwitterBootstrap3FormTemplate();

            var result = t.BeginForm("/", FormMethod.Post, null, null);

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }
Пример #2
0
        public void Begin_form_with_enctype()
        {
            var t = new TwitterBootstrap3FormTemplate();

            var result = t.BeginForm("/", FormMethod.Post, new HtmlAttributes(data_attr => "value"), EncType.Multipart);

            HtmlApprovals.VerifyHtml(result.ToHtmlString());
        }