示例#1
0
        public void numberbox_list_renders_list()
        {
            var html = new NumberBox("foo").List("list1").ToString();

            html.ShouldHaveHtmlNode("foo")
            .ShouldHaveAttribute(HtmlAttribute.List).WithValue("list1");
        }
示例#2
0
 public void basic_numberbox_render()
 {
     var html = new NumberBox("foo").ToString();
     html.ShouldHaveHtmlNode("foo")
         .ShouldBeNamed(HtmlTag.Input)
         .ShouldHaveAttribute(HtmlAttribute.Type).WithValue(HtmlInputType.Number);
 }
示例#3
0
        public void basic_numberbox_render()
        {
            var html = new NumberBox("foo").ToString();

            html.ShouldHaveHtmlNode("foo")
            .ShouldBeNamed(HtmlTag.Input)
            .ShouldHaveAttribute(HtmlAttribute.Type).WithValue(HtmlInputType.Number);
        }
示例#4
0
 public void numberbox_list_renders_list()
 {
     var html = new NumberBox("foo").List("list1").ToString();
     html.ShouldHaveHtmlNode("foo")
         .ShouldHaveAttribute(HtmlAttribute.List).WithValue("list1");
 }