public SetChildControlsCreated ( bool value ) : void | ||
value | bool | |
Результат | void |
public void ChildControlsCreated() { ChildControlsCreatedControl ctr = new ChildControlsCreatedControl(); ctr.Controls.Add(new Control()); //ctr.DoEnsureChildControls (); Assert.AreEqual(1, ctr.Controls.Count, "ChildControlsCreated#1"); ctr.SetChildControlsCreated(false); Assert.AreEqual(1, ctr.Controls.Count, "ChildControlsCreated#2"); }
public void ChildControlsCreated () { ChildControlsCreatedControl ctr = new ChildControlsCreatedControl (); ctr.Controls.Add (new Control ()); //ctr.DoEnsureChildControls (); Assert.AreEqual (1, ctr.Controls.Count, "ChildControlsCreated#1"); ctr.SetChildControlsCreated (false); Assert.AreEqual (1, ctr.Controls.Count, "ChildControlsCreated#2"); }