コード例 #1
0
        public void form_action_can_be_specified_via_constructor()
        {
            var tag = new FormTag("/user/create");

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

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

            tag.Attr("action").ShouldBe("/user/create");
        }
コード例 #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");
        }
コード例 #5
0
 public void form_action_can_be_specified_via_constructor()
 {
     var tag = new FormTag("/user/create");
     tag.Attr("action").ShouldEqual("/user/create");
 }
コード例 #6
0
 public void form_action_can_be_specified()
 {
     var tag = new FormTag().Action("/user/create");
     tag.Attr("action").ShouldEqual("/user/create");
 }
コード例 #7
0
 public void form_method_can_be_customized()
 {
     var tag = new FormTag().Method("get");
     tag.Attr("method").ShouldEqual("get");
 }
コード例 #8
0
 public void form_tag_creates_the_opening_element_of_a_form_with_id_mainForm()
 {
     var tag = new FormTag();
     tag.Attr("method").ShouldEqual("post");
 }