Exemple #1
0
        public void form_action_can_be_specified_via_constructor()
        {
            var tag = new FormTag("/user/create");

            tag.Attr("action").ShouldBe("/user/create");
        }
Exemple #2
0
        public void form_method_can_be_customized()
        {
            var tag = new FormTag().Method("get");

            tag.Attr("method").ShouldBe("get");
        }
Exemple #3
0
        public void form_action_can_be_specified()
        {
            var tag = new FormTag().Action("/user/create");

            tag.Attr("action").ShouldBe("/user/create");
        }
Exemple #4
0
        public void form_tag_creates_the_opening_element_of_a_form_with_id_mainForm()
        {
            var tag = new FormTag();

            tag.Attr("method").ShouldBe("post");
        }
 public void form_action_can_be_specified_via_constructor()
 {
     var tag = new FormTag("/user/create");
     tag.Attr("action").ShouldEqual("/user/create");
 }
 public void form_action_can_be_specified()
 {
     var tag = new FormTag().Action("/user/create");
     tag.Attr("action").ShouldEqual("/user/create");
 }
 public void form_method_can_be_customized()
 {
     var tag = new FormTag().Method("get");
     tag.Attr("method").ShouldEqual("get");
 }
 public void form_tag_creates_the_opening_element_of_a_form_with_id_mainForm()
 {
     var tag = new FormTag();
     tag.Attr("method").ShouldEqual("post");
 }