Beispiel #1
0
        public void LoadPostData()
        {
            TestHtmlTextArea ta = new TestHtmlTextArea();

            ta.ID = "id1";
            NameValueCollection nvc = new NameValueCollection();

            nvc.Add("id1", "mono");
            Assert.IsTrue(ta.LoadPost("id1", nvc), "LoadPostData");
            Assert.AreEqual("mono", ta.Value, "Value");
        }
Beispiel #2
0
        [Category("NotDotNet")]          // MS throws a NullReferenceException here
        public void LoadPostData_WrongId()
        {
            TestHtmlTextArea ta = new TestHtmlTextArea();

            ta.ID = "id1";
            NameValueCollection nvc = new NameValueCollection();

            nvc.Add("id1", "mono");
            Assert.IsFalse(ta.LoadPost("id2", nvc), "LoadPostData");
            Assert.AreEqual(String.Empty, ta.Value, "Value");
        }
Beispiel #3
0
        public void LoadPostData_NullCollection()
        {
            TestHtmlTextArea ta = new TestHtmlTextArea();

            ta.LoadPost("id1", null);
        }
Beispiel #4
0
		public void LoadPostData ()
		{
			TestHtmlTextArea ta = new TestHtmlTextArea ();
			ta.ID = "id1";
			NameValueCollection nvc = new NameValueCollection ();
			nvc.Add ("id1", "mono");
			Assert.IsTrue (ta.LoadPost ("id1", nvc), "LoadPostData");
			Assert.AreEqual ("mono", ta.Value, "Value");
		}
Beispiel #5
0
		[Category ("NotDotNet")] // MS throws a NullReferenceException here
		public void LoadPostData_WrongId ()
		{
			TestHtmlTextArea ta = new TestHtmlTextArea ();
			ta.ID = "id1";
			NameValueCollection nvc = new NameValueCollection ();
			nvc.Add ("id1", "mono");
			Assert.IsFalse (ta.LoadPost ("id2", nvc), "LoadPostData");
			Assert.AreEqual (String.Empty, ta.Value, "Value");
		}
Beispiel #6
0
		public void LoadPostData_NullCollection ()
		{
			TestHtmlTextArea ta = new TestHtmlTextArea ();
			ta.LoadPost ("id1", null);
		}