Author: everaldo
Date: 2007-05-11 10:49:30 -0400 (Fri, 11 May 2007)
New Revision: 77242

Modified:
   trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ToolBarTest.cs
Log:
2007-05-10  Everaldo Canuto  <[EMAIL PROTECTED]>

        * ToolBarTest.cs: CreateHandleTest added.



Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-05-11 14:46:48 UTC (rev 77241)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-05-11 14:49:30 UTC (rev 77242)
@@ -1,3 +1,7 @@
+2007-05-10  Everaldo Canuto  <[EMAIL PROTECTED]>
+
+       * ToolBarTest.cs: CreateHandleTest added.
+
 2007-05-10  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * FormTest.cs: Marking test for bug 81582 as NotWorking as it fails

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ToolBarTest.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ToolBarTest.cs  
    2007-05-11 14:46:48 UTC (rev 77241)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ToolBarTest.cs  
    2007-05-11 14:49:30 UTC (rev 77242)
@@ -171,6 +171,26 @@
                        
                        form.Close ();
                }
+
+               [Test]
+               public void CreateHandleTest ()
+               {
+                       Form form = new Form ();
+                       form.ShowInTaskbar = false;
+                       form.Show ();
+
+                       ToolBar toolbar = new ToolBar ();
+                       Assert.IsFalse (toolbar.IsHandleCreated, "#1");
+                       
+                       toolbar.Buttons.Add (new ToolBarButton (""));
+                       Assert.IsFalse (toolbar.IsHandleCreated, "#2");
+                       
+                       form.Controls.Add (toolbar);
+                       Assert.IsTrue (toolbar.IsHandleCreated, "#3");
+                       
+                       form.Close ();
+               }
+
        }
 
        // [MonoTODO ("Add test for ButtonClickEvent (Visual Test)"]

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to