{
Closed += new EventHandler (ChildForm_Closed);
Closing += new CancelEventHandler (ChildForm_Closing);
+#if NET_2_0
FormClosed += new FormClosedEventHandler (ChildForm_FormClosed);
FormClosing += new FormClosingEventHandler (ChildForm_FormClosing);
+#endif
}
-
+#if NET_2_0
void ChildForm_FormClosing (object sender, FormClosingEventArgs e)
{
Assert.IsNotNull (MdiParent, "ChildForm_FormClosing");
{
Assert.IsNotNull (MdiParent, "ChildForm_FormClosed");
}
-
+#endif
void ChildForm_Closing (object sender, CancelEventArgs e)
{
Assert.IsNotNull (MdiParent, "ChildForm_Closing");
}
}
}
+ [Test]
+ [Category ("NotWorking")]
+ public void StartLocationTest ()
+ {
+ SetUp (false, false);
+
+ child1.MdiParent = main;
+ child2.MdiParent = main;
+
+ child1.Visible = true;
+ child2.Visible = true;
+
+ main.Show ();
+
+ Assert.AreEqual ("{X=0,Y=0}", child1.Location.ToString (), "#1");
+ Assert.AreEqual (true, "{X=0,Y=0}" != child2.Location.ToString (), "#2");
+
+ TearDown ();
+ }
+ /* These tests are all failing on WinXP with XP Theme.
+ * offset seems to be 22,22 normally, and 22,29 with XP theme.
+ * Find a way to test this reliably.
+ * /
[Category("NotWorking")]
[Test]
public void StartLocationTest1 ()
TearDown ();
}
-
+*/
[Test]
public void StartSizeTest1 ()
{