Пример #1
0
        public void ValidationProperty()
        {
            BaseValidatorPoker p = new BaseValidatorPoker();
            PropertyDescriptor d;

            StartValidationTest(p);

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

            d = p.GetValidationProperty(box);
            Assert.AreEqual("Text", d.Name, "A1");
            Assert.AreEqual("hello world", p.DoGetControlValidationValue("textbox"), "A2");

            StopValidationTest();
        }
Пример #2
0
		public void ValidationProperty ()
		{
			BaseValidatorPoker p = new BaseValidatorPoker ();
			PropertyDescriptor d;

			StartValidationTest (p);

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

			d = p.GetValidationProperty (box);
			Assert.AreEqual ("Text", d.Name, "A1");
			Assert.AreEqual ("hello world", p.DoGetControlValidationValue ("textbox"), "A2");

			StopValidationTest ();
		}