public string Render() { HtmlTextWriter writer; writer = DropDownListTest.GetWriter(); base.Render(writer); return(writer.InnerWriter.ToString()); }
public void HtmlWriter() { HtmlTextWriter writer; writer = DropDownListTest.GetWriter(); writer.RenderBeginTag(HtmlTextWriterTag.Select); writer.AddAttribute(HtmlTextWriterAttribute.Value, "MeValue", true); writer.RenderBeginTag(HtmlTextWriterTag.Option); writer.Write("MeText"); writer.RenderEndTag(); writer.RenderEndTag(); Assert.AreEqual("<select>\n\t<option value=\"MeValue\">\n\t\tMeText\n\t</option>\n</select>", writer.InnerWriter.ToString(), "H1"); }
public void Deny_Unrestricted () { DropDownListTest unit = new DropDownListTest (); unit.DropDownList_Defaults (); unit.DropDownListBasic (); unit.DropDownListProperties (); unit.DropDownListSelectedCheck (); unit.DropDownListNull (); unit.DropDownNamingTest (); unit.InitialSelectionMade (); unit.TestValueFieldAndTextFormat (); unit.DropDownNullWriterTest (); }