Exemple #1
0
		static void ControlPropertiesValid_01_OnLoad (Page p)
		{
			var dv = p.FindChild<PokerDynamicValidator> ("dynamicValidator1");
			Assert.IsNotNull (dv, "#A1");

			Assert.IsFalse (dv.CallControlPropertiesValid (), "#A2");
			Assert.IsNull (dv.Column, "#A2-1");
			Assert.IsNull (dv.ColumnName, "#A2-2");

			MetaModel m = Utils.CommonInitialize ();
			MetaTable t = m.Tables[TestDataContext.TableBar];
			MetaColumn mc = t.GetColumn ("Column1");

			dv.Column = mc;
			Assert.IsFalse (dv.CallControlPropertiesValid (), "#A3");
			Assert.IsNotNull (dv.Column, "#A3-1");
			Assert.IsNull (dv.ColumnName, "#A3-2");
		}