* FormHandleTest.cs, ControlEventTest.cs, MenuStripTest.cs,
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / ApplicationContextTest.cs
index 58eebccac0380867a37e63b3ff612b52c4ea20e8..4bdd2bc78112711fab3e9321196910264670c849 100644 (file)
@@ -13,6 +13,7 @@ using System.Windows.Forms;
 using System.Drawing;
 using System.Reflection;
 using NUnit.Framework;
+using CategoryAttribute=NUnit.Framework.CategoryAttribute;
 
 namespace MonoTests.System.Windows.Forms
 {
@@ -69,6 +70,8 @@ namespace MonoTests.System.Windows.Forms
 
                        Assert.AreEqual (true, reached_form_handle_destroyed, "3");
                        Assert.AreEqual (1, thread_exit_count, "4");
+
+                       f1.Dispose ();
                }
 
                [Test]
@@ -89,6 +92,8 @@ namespace MonoTests.System.Windows.Forms
                        f1.DoDestroyHandle ();
                        Assert.AreEqual (true, reached_form_handle_destroyed, "3");
                        Assert.AreEqual (1, thread_exit_count, "4");
+                       
+                       f1.Dispose ();
                }
 
                [Test]
@@ -116,6 +121,7 @@ namespace MonoTests.System.Windows.Forms
                        f1.DoDestroyHandle ();
                        Assert.AreEqual (f1, ctx.MainForm, "4");
                        Assert.AreEqual (2, thread_exit_count, "5");
+                       f1.Dispose ();
                }
 
                [Test]