Example #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);
			}
		}
Example #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 ();
			}
		}
Example #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);
            }
        }
Example #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();
            }
        }