Author: andreia
Date: 2007-01-13 15:40:02 -0500 (Sat, 13 Jan 2007)
New Revision: 70964
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
Log:
* ControlTest.cs: Add test to check if Exception is raised when
adding a top level control (form) as a child control
2007-01-13 Andreia Gaita <[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-01-13 19:58:05 UTC (rev 70963)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-01-13 20:40:02 UTC (rev 70964)
@@ -1,3 +1,8 @@
+2007-01-13 Andreia Gaita <[EMAIL PROTECTED]>
+
+ * ControlTest.cs: Add test to check if Exception is raised when
+ adding a top level control (form) as a child control
+
2007-01-12 Gert Driesen <[EMAIL PROTECTED]>
* FocusTest.cs: Ignore tests that rely on Form.Show () synchronously
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
2007-01-13 19:58:05 UTC (rev 70963)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
2007-01-13 20:40:02 UTC (rev 70964)
@@ -1584,6 +1584,14 @@
}
[Test]
+ [ExpectedException (typeof (ArgumentException))]
+ public void TestTopLevelAdd () {
+ Form f = new Form();
+ Form f1 = new Form();
+ f.Controls.Add(f1);
+ }
+
+ [Test]
public void TestForm ()
{
Form f = new Form ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches