public void Controls1() { DerivedControl derived = new DerivedControl(); derived.Controls.Add(new LiteralControl("hola")); StringWriter sw = new StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); derived.RenderControl(htw); string result = sw.ToString(); Assert.AreEqual("", result, "#01"); }
public void Controls1 () { DerivedControl derived = new DerivedControl (); derived.Controls.Add (new LiteralControl ("hola")); StringWriter sw = new StringWriter (); HtmlTextWriter htw = new HtmlTextWriter (sw); derived.RenderControl (htw); string result = sw.ToString (); Assert.AreEqual ("", result, "#01"); }