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