Esempio n. 1
0
        public void ControlPropertiesValid2()
        {
            BaseValidatorPoker p = new BaseValidatorPoker();

            StartValidationTest(p);
            TextBox box = AddTextBox("textbox", "hello world");

            /* successful */
            p.DoCheckControlValidationProperty("textbox", "Text");

            /* failure (exception) due to unknown control */
            p.DoCheckControlValidationProperty("textbox2", "Text");

            StopValidationTest();
        }
Esempio n. 2
0
        public void ControlPropertiesValid3()
        {
            BaseValidatorPoker p = new BaseValidatorPoker();

            StartValidationTest(p);

            p.ControlToValidate = "textbox";

            /* failure (exception) due to unknown control */
            p.DoCheckControlValidationProperty("textbox", "Text2");

            StopValidationTest();
        }
Esempio n. 3
0
		public void ControlPropertiesValid3 ()
		{
			BaseValidatorPoker p = new BaseValidatorPoker ();

			StartValidationTest (p);

			p.ControlToValidate = "textbox";

			/* failure (exception) due to unknown control */
			p.DoCheckControlValidationProperty ("textbox", "Text2");

			StopValidationTest ();
		}
Esempio n. 4
0
		public void ControlPropertiesValid2 ()
		{
			BaseValidatorPoker p = new BaseValidatorPoker ();

			StartValidationTest (p);
			TextBox box = AddTextBox ("textbox", "hello world");

			/* successful */
			p.DoCheckControlValidationProperty ("textbox", "Text");

			/* failure (exception) due to unknown control */
			p.DoCheckControlValidationProperty ("textbox2", "Text");

			StopValidationTest ();
		}