public void IPostBackDataHandler_LoadPostData_NullCollection() { TestHtmlInputPassword it = new TestHtmlInputPassword(); IPostBackDataHandler pbdh = (it as IPostBackDataHandler); pbdh.LoadPostData("id1", null); }
public void RaisePostBackEvent() { TestHtmlInputPassword it = new TestHtmlInputPassword(); it.ServerChange += new EventHandler(ServerChange); serverChange = false; it.Raise(); Assert.IsTrue(serverChange, "ServerClick"); }
public void LoadPostData() { TestHtmlInputPassword it = new TestHtmlInputPassword(); it.ID = "id1"; NameValueCollection nvc = new NameValueCollection(); nvc.Add("id1", "mono"); Assert.IsTrue(it.LoadPost("id1", nvc), "LoadPostData"); Assert.AreEqual("mono", it.Value, "Value"); }
public void IPostBackDataHandler_RaisePostBackEvent() { TestHtmlInputPassword it = new TestHtmlInputPassword(); it.ServerChange += new EventHandler(ServerChange); IPostBackDataHandler pbdh = (it as IPostBackDataHandler); serverChange = false; pbdh.RaisePostDataChangedEvent(); Assert.IsTrue(serverChange, "ServerChange"); }
public void IPostBackDataHandler_LoadPostData() { TestHtmlInputPassword it = new TestHtmlInputPassword(); it.ID = "id1"; IPostBackDataHandler pbdh = (it as IPostBackDataHandler); NameValueCollection nvc = new NameValueCollection(); nvc.Add("id1", "mono"); Assert.IsTrue(pbdh.LoadPostData("id1", nvc), "LoadPostData"); Assert.AreEqual("mono", it.Value, "Value"); }
public void RenderAttributes() { TestHtmlInputPassword it = new TestHtmlInputPassword(); it.MaxLength = 4; it.Size = 2; it.Name = "mono"; it.Value = "value"; Assert.AreEqual(" name type=\"password\" maxlength=\"4\" size=\"2\" /", it.RenderAttributes()); Assert.IsTrue(it.ViewStateValueChanged, "ViewStateValueChanged"); Assert.IsTrue(it.AttributeValueChanged, "AttributeValueChanged"); }
public void LoadPostData_NullCollection() { TestHtmlInputPassword it = new TestHtmlInputPassword(); it.LoadPost("id1", null); }
public void LoadPostData_NullCollection () { TestHtmlInputPassword it = new TestHtmlInputPassword (); it.LoadPost ("id1", null); }
public void LoadPostData () { TestHtmlInputPassword it = new TestHtmlInputPassword (); it.ID = "id1"; NameValueCollection nvc = new NameValueCollection (); nvc.Add ("id1", "mono"); Assert.IsTrue (it.LoadPost ("id1", nvc), "LoadPostData"); Assert.AreEqual ("mono", it.Value, "Value"); }
public void RaisePostBackEvent () { TestHtmlInputPassword it = new TestHtmlInputPassword (); it.ServerChange += new EventHandler (ServerChange); serverChange = false; it.Raise (); Assert.IsTrue (serverChange, "ServerClick"); }
public void IPostBackDataHandler_LoadPostData () { TestHtmlInputPassword it = new TestHtmlInputPassword (); it.ID = "id1"; IPostBackDataHandler pbdh = (it as IPostBackDataHandler); NameValueCollection nvc = new NameValueCollection (); nvc.Add ("id1", "mono"); Assert.IsTrue (pbdh.LoadPostData ("id1", nvc), "LoadPostData"); Assert.AreEqual ("mono", it.Value, "Value"); }
public void IPostBackDataHandler_LoadPostData_NullCollection () { TestHtmlInputPassword it = new TestHtmlInputPassword (); IPostBackDataHandler pbdh = (it as IPostBackDataHandler); pbdh.LoadPostData ("id1", null); }
public void IPostBackDataHandler_RaisePostBackEvent () { TestHtmlInputPassword it = new TestHtmlInputPassword (); it.ServerChange += new EventHandler (ServerChange); IPostBackDataHandler pbdh = (it as IPostBackDataHandler); serverChange = false; pbdh.RaisePostDataChangedEvent (); Assert.IsTrue (serverChange, "ServerChange"); }
public void RenderAttributes () { TestHtmlInputPassword it = new TestHtmlInputPassword (); it.MaxLength = 4; it.Size = 2; it.Name = "mono"; it.Value = "value"; Assert.AreEqual (" name type=\"password\" maxlength=\"4\" size=\"2\" /", it.RenderAttributes ()); Assert.IsTrue (it.ViewStateValueChanged, "ViewStateValueChanged"); Assert.IsTrue (it.AttributeValueChanged, "AttributeValueChanged"); }