示例#1
0
		public void RenderBeginTagTest ()
		{
			FileUpload fu = new FileUpload ();
			fu.Page = new Page ();
			string res;
			using (StringWriter sw = new StringWriter ()) {
				using (HtmlTextWriter htw = new HtmlTextWriter (sw)) {
					fu.RenderBeginTag (htw);
				}
				sw.Close ();
				res = sw.ToString ();
			}
			Assert.AreEqual ("<input type=\"file\" />", res);
		}