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");
        }
예제 #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");
 }
예제 #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");
 }
예제 #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");
 }
예제 #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");
        }
예제 #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");
        }