Ejemplo n.º 1
0
        public void telephonebox_list_renders_list()
        {
            var html = new TelephoneBox("foo").List("list1").ToString();

            html.ShouldHaveHtmlNode("foo")
            .ShouldHaveAttribute(HtmlAttribute.List).WithValue("list1");
        }
Ejemplo n.º 2
0
 public void basic_telephonebox_render()
 {
     var html = new TelephoneBox("foo").ToString();
     html.ShouldHaveHtmlNode("foo")
         .ShouldBeNamed(HtmlTag.Input)
         .ShouldHaveAttribute(HtmlAttribute.Type).WithValue(HtmlInputType.Telephone);
 }
Ejemplo n.º 3
0
        public void basic_telephonebox_render()
        {
            var html = new TelephoneBox("foo").ToString();

            html.ShouldHaveHtmlNode("foo")
            .ShouldBeNamed(HtmlTag.Input)
            .ShouldHaveAttribute(HtmlAttribute.Type).WithValue(HtmlInputType.Telephone);
        }
Ejemplo n.º 4
0
 public void telephonebox_list_renders_list()
 {
     var html = new TelephoneBox("foo").List("list1").ToString();
     html.ShouldHaveHtmlNode("foo")
         .ShouldHaveAttribute(HtmlAttribute.List).WithValue("list1");
 }