Example #1
0
        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");
        }
Example #2
0
		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");
		}