Example #1
0
        public void html5_mode_renders_with_single_tag()
        {
            BrTag.ComplianceMode = BrTag.ComplianceModes.Html5;
            var tag = new BrTag();

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

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

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

            tag.ToString().ShouldBe("<br>");
        }
Example #8
0
        public void default_renders_with_open_close_tags()
        {
            var tag = new BrTag();

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