Exemple #1
0
            public string Render()
            {
                HtmlTextWriter writer;

                writer = DropDownListTest.GetWriter();
                base.Render(writer);
                return(writer.InnerWriter.ToString());
            }
Exemple #2
0
        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");
        }
Exemple #3
0
		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 ();
		}