Inheritance: System.Web.UI.Control
Example #1
0
        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");
        }
Example #2
0
		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");
		}