public void Render_KindNone() { var renderer = new ElementRenderer(); var e = new Element("tag", ClosingTagKind.None); var result = renderer.Render(e).ToString(); Assert.Equal("<tag >", result); }
public void Render_WithAttribute() { var renderer = new ElementRenderer(); var e = new Element("tag", ClosingTagKind.Normal); e.Attributes.Add(new ElementAttribute("foo", "bar")); var result = renderer.Render(e).ToString(); Assert.Equal("<tag foo=\"bar\"></tag>", result); }