Пример #1
0
        public void html5_mode_renders_with_single_tag()
        {
            BrTag.ComplianceMode = BrTag.ComplianceModes.Html5;
            var tag = new BrTag();

            tag.ToString().ShouldEqual("<br>");
        }
Пример #2
0
        public void xhtml_mode_renders_with_self_closing_tag()
        {
            BrTag.ComplianceMode = BrTag.ComplianceModes.Xhtml;
            var tag = new BrTag();

            tag.ToString().ShouldEqual("<br />");
        }
Пример #3
0
        public void ToString_BrTag_IncludesEndingTag()
        {
            var tag = new BrTag();

            tag.ToString().ShouldEqual("<br></br>");
        }
Пример #4
0
 public void xhtml_mode_renders_with_self_closing_tag()
 {
     BrTag.ComplianceMode = BrTag.ComplianceModes.Xhtml;
     var tag = new BrTag();
     tag.ToString().ShouldEqual("<br />");
 }
Пример #5
0
 public void html5_mode_renders_with_single_tag()
 {
     BrTag.ComplianceMode = BrTag.ComplianceModes.Html5;
     var tag = new BrTag();
     tag.ToString().ShouldEqual("<br>");
 }
Пример #6
0
 public void default_renders_with_open_close_tags()
 {
     var tag = new BrTag();
     tag.ToString().ShouldEqual("<br></br>");
 }
Пример #7
0
        public void default_renders_with_self_closing_tags()
        {
            var tag = new BrTag();

            tag.ToString().ShouldBe("<br>");
        }
Пример #8
0
        public void default_renders_with_open_close_tags()
        {
            var tag = new BrTag();

            tag.ToString().ShouldEqual("<br></br>");
        }
Пример #9
0
 public void default_renders_with_self_closing_tags()
 {
     var tag = new BrTag();
     tag.ToString().ShouldEqual("<br />");
 }