|
|
@@ -215,6 +215,19 @@ namespace MonoTests.System.Windows.Forms
|
|
|
Assert.IsFalse (myform.IsDisposed, "A10");
|
|
|
}
|
|
|
|
|
|
+ [Test]
|
|
|
+ public void DisposeOwnerTest ()
|
|
|
+ {
|
|
|
+ Form f1 = new Form ();
|
|
|
+ Form f2 = new Form ();
|
|
|
+
|
|
|
+ f2.Owner = f1;
|
|
|
+
|
|
|
+ f1.Dispose ();
|
|
|
+
|
|
|
+ Assert.IsNull (f2.Owner, "1");
|
|
|
+ }
|
|
|
+
|
|
|
[Test]
|
|
|
[ExpectedException (typeof (ObjectDisposedException))]
|
|
|
public void AccessDisposedForm ()
|