Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Bjarne Kvinge <RKvinge@novell.com>2007-01-23 22:53:39 +0300
committerRolf Bjarne Kvinge <RKvinge@novell.com>2007-01-23 22:53:39 +0300
commit60dfeb46f3bbf305c946c0fc68570260187bc03f (patch)
treefecf09f4ee8f2765ee8cd43d654005299d805317
parent7808e22d13b9b590aef4367e71e8f38bf841db0d (diff)
2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
* ControlTest.cs: Added a tests for ControlCollection and MDI children. svn path=/trunk/mcs/; revision=71552
-rw-r--r--mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog5
-rw-r--r--mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs23
2 files changed, 28 insertions, 0 deletions
diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
index 4838ce51d7e..101e14cb3be 100644
--- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
+++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
+
+ * ControlTest.cs: Added a tests for ControlCollection and
+ MDI children.
+
2007-01-23 Andreia Gaita <avidigal@novell.com>
* SendKeysTest.cs: Marked interactive, they're unstable
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 26942ba95d1..4b729ab76c1 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
@@ -71,6 +71,29 @@ namespace MonoTests.System.Windows.Forms
Application.DoEvents ();
}
}
+
+ [Test]
+ public void ControlCollectionTest ()
+ {
+ Form frm = new Form ();
+ frm.IsMdiContainer = true;
+ Form child = new Form ();
+ Control.ControlCollection c = new Control.ControlCollection (frm);
+ child.MdiParent = frm;
+ c.Add (child);
+ }
+
+ [Test]
+ [ExpectedException (typeof (ArgumentException))]
+ public void ControlCollectionExceptionTest ()
+ {
+ Form frm = new Form ();
+ frm.IsMdiContainer = true;
+ Form child = new Form ();
+ Control.ControlCollection c = new Control.ControlCollection (frm);
+ //child.MdiParent = frm;
+ c.Add (child);
+ }
[Test]
[Category ("NotWorking")]