public void TestChildControl () { Control c1 = new Control(); ControlPoker c2 = new ControlPoker (); c1.Controls.Add (c2); c2.DoSetTopLevel (); }
public void TestControl () { ControlPoker c = new ControlPoker (); c.Visible = false; c.DoSetTopLevel (); Assert.IsTrue (c.DoGetTopLevel (), "1"); Assert.IsFalse (c.Visible, "2"); }