Author: toshok
Date: 2007-01-10 14:32:03 -0500 (Wed, 10 Jan 2007)
New Revision: 70805
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ContainerControlTest.cs
Log:
2007-01-10 Chris Toshok <[EMAIL PROTECTED]>
* ContainerControlTest.cs: add a test for setting ActiveControl to
a non-child control.
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-10 19:28:52 UTC (rev 70804)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-01-10 19:32:03 UTC (rev 70805)
@@ -1,3 +1,8 @@
+2007-01-10 Chris Toshok <[EMAIL PROTECTED]>
+
+ * ContainerControlTest.cs: add a test for setting ActiveControl to
+ a non-child control.
+
2007-01-08 Jonathan Pobst <[EMAIL PROTECTED]>
* FormTest.cs: Added tests for ensuring Form.OnFormClosing is called.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ContainerControlTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ContainerControlTest.cs
2007-01-10 19:28:52 UTC (rev 70804)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ContainerControlTest.cs
2007-01-10 19:32:03 UTC (rev 70805)
@@ -175,6 +175,14 @@
}
[Test]
+ [ExpectedException (typeof (ArgumentException))]
+ public void ActiveControlNotChildTest ()
+ {
+ ContainerControl c = new ContainerControl ();
+ c.ActiveControl = new Control ();
+ }
+
+ [Test]
public void Validation() {
Queue events = new Queue();
@@ -233,6 +241,5 @@
form.Dispose();
}
-
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches