public void Render_DefaultTest() { var instance = new SelfClosingTag(); string renderOuput = instance.Render(); Assert.AreEqual(@"<div />", renderOuput); }
public void Render_AttributesTest() { var instance = new SelfClosingTag { Name = "span", Attributes = new Dictionary <string, string>() { { "id", "0" }, { "class", "basic-text" }, { "style", "color: red" } } }; string renderOutput = instance.Render(); Assert.AreEqual("<span id=\"0\" class=\"basic-text\" style=\"color: red\"/>", renderOutput); }