Ejemplo n.º 1
0
		public void RenderWithoutPageTest ()
		{
			PokerFileUpload fu = new PokerFileUpload ();
			using (StringWriter sw = new StringWriter ()) {
				using (HtmlTextWriter htw = new HtmlTextWriter (sw)) {
					fu.DoRender (htw);
				}
				sw.Close ();
				string res = sw.ToString ();
				Assert.AreEqual ("<input type=\"file\" />", res);
			}
		}
Ejemplo n.º 2
0
		public void RenderWithPageTest ()
		{
			PokerFileUpload fu = new PokerFileUpload ();
			fu.Page = new Page ();
			fu.Page.Controls.Add (fu);
			
			using (StringWriter sw = new StringWriter ()) {
				using (HtmlTextWriter htw = new HtmlTextWriter (sw)) {
					fu.DoRender (htw);
				}
				sw.Close ();
			}
		}
Ejemplo n.º 3
0
        public void RenderWithoutPageTest()
        {
            PokerFileUpload fu = new PokerFileUpload();

            using (StringWriter sw = new StringWriter()) {
                using (HtmlTextWriter htw = new HtmlTextWriter(sw)) {
                    fu.DoRender(htw);
                }
                sw.Close();
                string res = sw.ToString();
                Assert.AreEqual("<input type=\"file\" />", res);
            }
        }
Ejemplo n.º 4
0
        public void RenderWithPageTest()
        {
            PokerFileUpload fu = new PokerFileUpload();

            fu.Page = new Page();
            fu.Page.Controls.Add(fu);

            using (StringWriter sw = new StringWriter()) {
                using (HtmlTextWriter htw = new HtmlTextWriter(sw)) {
                    fu.DoRender(htw);
                }
                sw.Close();
            }
        }