public void submit_button_with_target_self_renders_target_self()
        {
            var html = new SubmitButton("foo").TargetSelf().ToString();

            html.ShouldHaveHtmlNode("foo")
            .ShouldHaveAttribute(HtmlAttribute.FormTarget).WithValue("_self");
        }
        public void submit_button_with_method_renders_method()
        {
            var html = new SubmitButton("foo").Method(FormMethod.Post).ToString();

            html.ShouldHaveHtmlNode("foo")
            .ShouldHaveAttribute(HtmlAttribute.FormMethod).WithValue("post");
        }
        public void submit_button_with_enctype_renders_enctype()
        {
            var html = new SubmitButton("foo").EncType("test").ToString();

            html.ShouldHaveHtmlNode("foo")
            .ShouldHaveAttribute(HtmlAttribute.FormEncType).WithValue("test");
        }
        public void submit_button_with_form_renders_form()
        {
            var html = new SubmitButton("foo").Form("test").ToString();

            html.ShouldHaveHtmlNode("foo")
            .ShouldHaveAttribute(HtmlAttribute.Form).WithValue("test");
        }
Example #5
0
 public void submit_button_with_target_self_renders_target_self()
 {
     var html = new SubmitButton("foo").TargetSelf().ToString();
     html.ShouldHaveHtmlNode("foo")
         .ShouldHaveAttribute(HtmlAttribute.FormTarget).WithValue("_self");
 }
Example #6
0
 public void submit_button_with_method_renders_method()
 {
     var html = new SubmitButton("foo").Method(FormMethod.Post).ToString();
     html.ShouldHaveHtmlNode("foo")
         .ShouldHaveAttribute(HtmlAttribute.FormMethod).WithValue("post");
 }
Example #7
0
 public void submit_button_with_form_renders_form()
 {
     var html = new SubmitButton("foo").Form("test").ToString();
     html.ShouldHaveHtmlNode("foo")
         .ShouldHaveAttribute(HtmlAttribute.Form).WithValue("test");
 }
Example #8
0
        public void submit_button_with_formnovalidate_renders_attribute()
        {
            var html = new SubmitButton("foo").FormNoValidate(true).ToString();

            html.ShouldHaveHtmlNode("foo").ShouldHaveAttribute(HtmlAttribute.FormNoValidate).WithValue("formnovalidate");
        }
Example #9
0
 public void submit_button_with_enctype_renders_enctype()
 {
     var html = new SubmitButton("foo").EncType("test").ToString();
     html.ShouldHaveHtmlNode("foo")
         .ShouldHaveAttribute(HtmlAttribute.FormEncType).WithValue("test");
 }
        public void submit_button_with_formnovalidate_renders_attribute()
        {
            var html = new SubmitButton("foo").FormNoValidate(true).ToString();

            html.ShouldHaveHtmlNode("foo").ShouldHaveAttribute(HtmlAttribute.FormNoValidate).WithValue("formnovalidate");
        }