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"); }
[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"); }
public void LoadPostData_NullCollection() { TestHtmlTextArea ta = new TestHtmlTextArea(); ta.LoadPost("id1", null); }
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"); }
[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"); }
public void LoadPostData_NullCollection () { TestHtmlTextArea ta = new TestHtmlTextArea (); ta.LoadPost ("id1", null); }