From bc94d7a3b1d69dba610cb430bc104da6bea64220 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 29 Nov 2006 15:42:20 +0000 Subject: [PATCH] add (NotWorking) test to see which properties cause control handles to be created (turns out none of the listed ones do) svn path=/trunk/mcs/; revision=68668 --- .../Test/System.Windows.Forms/ControlTest.cs | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs index 1224b205a8c..65dcf722db1 100644 --- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs +++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs @@ -602,6 +602,48 @@ namespace MonoTests.System.Windows.Forms } [Test] + [Category ("NotWorking")] + public void CreateHandleTest2 () + { + // This should eventually test all operations + // that can be performed on a control (within + // reason) + Control c = new Control (); + + Assert.IsFalse (c.IsHandleCreated, "0"); + + c.Width = 100; + Assert.IsFalse (c.IsHandleCreated, "1"); + + c.Height = 100; + Assert.IsFalse (c.IsHandleCreated, "2"); + + c.Name = "hi"; + Assert.IsFalse (c.IsHandleCreated, "3"); + + c.Left = 5; + Assert.IsFalse (c.IsHandleCreated, "5"); + + c.Top = 5; + Assert.IsFalse (c.IsHandleCreated, "6"); + + c.Location = new Point (1,1); + Assert.IsFalse (c.IsHandleCreated, "7"); + + c.Region = new Region (); + Assert.IsFalse (c.IsHandleCreated, "8"); + + c.Size = new Size (100, 100); + Assert.IsFalse (c.IsHandleCreated, "9"); + + c.Text = "bye"; + Assert.IsFalse (c.IsHandleCreated, "10"); + + c.Visible = !c.Visible; + Assert.IsFalse (c.IsHandleCreated, "11"); + } + + [Test] public void CreateGraphicsTest () { Graphics g = null; -- 2.11.4.GIT