* MdiFormTest.cs: Change a few tests to dispose of
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / MdiFormTest.cs
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]