* MdiFormTest.cs: Change a few tests to dispose of
authorRolf Bjarne Kvinge <RKvinge@novell.com>
Mon, 4 Dec 2006 16:51:34 +0000 (16:51 -0000)
committerRolf Bjarne Kvinge <RKvinge@novell.com>
Mon, 4 Dec 2006 16:51:34 +0000 (16:51 -0000)
the form when the test is finished.

2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>

svn path=/trunk/mcs/; revision=68969

mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs

index d722d9b932c0e0e0af9b4e08a0f7b9d56dec41fd..5c92b50951aab542ad6e37ba67c4475a5a39f630 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * MdiFormTest.cs: Change a few tests to dispose of
+       the form when the test is finished.
+
 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
 
        * MdiFormTest.cs: Added a few NotWorking tests for
index ddcb0eb531b2454078d756da848aabe4214475db..2c7b6156b5c5d3526a6d844e4c3736c92fea171d 100644 (file)
@@ -751,6 +751,8 @@ namespace MonoTests.System.Windows.Forms
                        child.Show ();
 
                        Assert.AreEqual ("main - [child]", main.Text, "#2");
+
+                       main.Dispose ();
                }
 
                [Test] // bug 80038
@@ -775,6 +777,8 @@ namespace MonoTests.System.Windows.Forms
 
                        child.Close ();
                        Assert.AreEqual ("main", main.Text, "#3");
+
+                       main.Dispose ();
                }
 
                [Test]
@@ -809,6 +813,8 @@ namespace MonoTests.System.Windows.Forms
                        child1.WindowState = FormWindowState.Maximized;
 
                        Assert.AreEqual ("main - [child1]", main.Text, "#4");
+
+                       main.Dispose ();
                }
 
                [Test]