Exemple #1
0
        public void IPostBackDataHandler_LoadPostData_NullCollection()
        {
            TestHtmlInputPassword it   = new TestHtmlInputPassword();
            IPostBackDataHandler  pbdh = (it as IPostBackDataHandler);

            pbdh.LoadPostData("id1", null);
        }
Exemple #2
0
        public void RaisePostBackEvent()
        {
            TestHtmlInputPassword it = new TestHtmlInputPassword();

            it.ServerChange += new EventHandler(ServerChange);
            serverChange     = false;
            it.Raise();
            Assert.IsTrue(serverChange, "ServerClick");
        }
Exemple #3
0
        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");
        }
Exemple #4
0
        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");
        }
Exemple #5
0
        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");
        }
Exemple #6
0
        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");
        }
Exemple #7
0
        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");
		}