Example #1
0
        public void Undocumented_ActionProperty()
        {
            TestPage p = new TestPage();

            p.SetContext();
            FormPoker form = new FormPoker();

            form.Page   = p;
            form.Action = "someactionfile.aspx";
            string attrs = form.RenderAttributes();

            Assert.AreEqual(" method=\"post\" action=\"someactionfile.aspx\"", attrs, "A1");
            form.RenderingCompatibility = new Version(3, 5);
            attrs = form.RenderAttributes();
            Assert.AreEqual(" name=\"aspnetForm\" method=\"post\" action=\"someactionfile.aspx\"", attrs, "A2");
        }
Example #2
0
        public void ActionStringWithQuery()
        {
            TestPage p = new TestPage();

            p.SetContext();
            FormPoker form = new FormPoker();

            form.Page = p;
            string attrs = form.RenderAttributes();

            // Indirect test for HttpRequest.QueryStringRaw, see
            // https://bugzilla.novell.com/show_bug.cgi?id=376352
            Assert.AreEqual(" method=\"post\" action=\"?q=1&q2=2\"", attrs, "A1");
            form.RenderingCompatibility = new Version(3, 5);
            attrs = form.RenderAttributes();
            Assert.AreEqual(" name=\"aspnetForm\" method=\"post\" action=\"?q=1&q2=2\"", attrs, "A2");
        }
Example #3
0
		public void Undocumented_ActionProperty ()
		{
			TestPage p = new TestPage ();
			p.SetContext ();
			FormPoker form = new FormPoker ();
			form.Page = p;
			form.Action = "someactionfile.aspx";
			string attrs = form.RenderAttributes ();
#if NET_4_0
			Assert.AreEqual (" method=\"post\" action=\"someactionfile.aspx\"", attrs, "A1");
			form.RenderingCompatibility = new Version (3, 5);
			attrs = form.RenderAttributes ();
#endif
			Assert.AreEqual (" name=\"aspnetForm\" method=\"post\" action=\"someactionfile.aspx\"", attrs, "A2");
		}
Example #4
0
		public void ActionStringWithQuery ()
		{
			TestPage p = new TestPage ();
			p.SetContext ();
			FormPoker form = new FormPoker ();
			form.Page = p;
			string attrs = form.RenderAttributes ();

			// Indirect test for HttpRequest.QueryStringRaw, see
			// https://bugzilla.novell.com/show_bug.cgi?id=376352
#if NET_4_0
			Assert.AreEqual (" method=\"post\" action=\"?q=1&q2=2\"", attrs, "A1");
			form.RenderingCompatibility = new Version (3, 5);
			attrs = form.RenderAttributes ();
#endif
			Assert.AreEqual (" name=\"aspnetForm\" method=\"post\" action=\"?q=1&q2=2\"", attrs, "A2");
		}
		public void Undocumented_ActionProperty ()
		{
			TestPage p = new TestPage ();
			p.SetContext ();
			FormPoker form = new FormPoker ();
			form.Page = p;
			form.Action = "someactionfile.aspx";
			string attrs = form.RenderAttributes ();

			Assert.AreEqual (" method=\"post\" action=\"someactionfile.aspx\"", attrs, "A1");
		}
		public void ActionStringWithQuery ()
		{
			TestPage p = new TestPage ();
			p.SetContext ();
			FormPoker form = new FormPoker ();
			form.Page = p;
			string attrs = form.RenderAttributes ();

			// Indirect test for HttpRequest.QueryStringRaw, see
			// https://bugzilla.novell.com/show_bug.cgi?id=376352
			Assert.AreEqual (" method=\"post\" action=\"?q=1&q2=2\"", attrs, "A1");
		}