コード例 #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");
        }
コード例 #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");
        }
コード例 #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");
        }
コード例 #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");
        }
コード例 #5
0
ファイル: HtmlFormTest.cs プロジェクト: carrie901/mono
		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");
		}
コード例 #6
0
ファイル: HtmlFormTest.cs プロジェクト: carrie901/mono
		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");
		}
コード例 #7
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");
		}
コード例 #8
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");
		}