/// <summary> /// Replaces the content of the element. /// </summary> /// <param name="renderOptions">Defines what to render</param> /// <example> /// The following example uses nvelocity syntax: /// <code> /// $page.el('elementid').ReplaceHtml("%{partial='shared/newmessage.vm'}") /// </code> /// </example> public void ReplaceHtml(object renderOptions) { parent.ReplaceHtml(root, renderOptions); }
public void ReplaceHtml() { sut.ReplaceHtml("#foo", "something"); Assert.AreEqual("jQuery(\"#foo\").html(\"something\");\r\n", codeGen.Lines.ToString()); }