Ejemplo n.º 1
0
        public void Xml_Comment_AddsXmlCommentCode()
        {
            var xml = new Xml();

            xml.Comment("comment");
            xml.Tag("hello", "world");
            Assert.Equal("<!--comment--><hello>world</hello>", xml);
        }
Ejemplo n.º 2
0
 public void Xml_Comment_NullComment_ThrowsNullException()
 {
     var xml = new Xml();
     Assert.Throws<ArgumentNullException>(() => xml.Comment(null));
 }
Ejemplo n.º 3
0
 public void Xml_Comment_AddsXmlCommentCode()
 {
     var xml = new Xml();
     xml.Comment("comment");
     xml.Tag("hello", "world");
     Assert.Equal("<!--comment--><hello>world</hello>", xml);
 }
Ejemplo n.º 4
0
        public void Xml_Comment_NullComment_ThrowsNullException()
        {
            var xml = new Xml();

            Assert.Throws <ArgumentNullException>(() => xml.Comment(null));
        }