Author: mritvik
Date: 2005-05-02 10:30:58 -0400 (Mon, 02 May 2005)
New Revision: 43887
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
Log:
2005-05-02 Ritvik Mayank <[EMAIL PROTECTED]>
* ControlTest.cs : Minor modifications
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2005-05-02 14:20:43 UTC (rev 43886)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2005-05-02 14:30:58 UTC (rev 43887)
@@ -1,5 +1,9 @@
2005-05-02 Ritvik Mayank <[EMAIL PROTECTED]>
+
+ * ControlTest.cs : Minor modifications
+
+2005-05-02 Ritvik Mayank <[EMAIL PROTECTED]>
* ControlTest.cs : Test for Control
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
2005-05-02 14:20:43 UTC (rev 43886)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
2005-05-02 14:30:58 UTC (rev 43887)
@@ -14,8 +14,6 @@
using NUnit.Framework;
-namespace ControlsTest
-{
[TestFixture]
public class ControlTest
{
@@ -74,7 +72,7 @@
Assert.AreEqual(null, c.Parent, "#49");
//Assert.AreEqual("Novell Mono MWF", c.ProductName, "#52");
Assert.AreEqual("1.1.4322.573", c.ProductVersion, "#53");
- Assert.AreEqual(false, c.RecreatingHandle, "#54");
+ Assert.AreEqual(false, c.RecreatingHandle, "#54");
Assert.AreEqual(null, c.Region, "#55");
Assert.AreEqual(0, c.Right, "#56");
Assert.AreEqual(RightToLeft.No, c.RightToLeft, "#57");
@@ -113,10 +111,13 @@
Assert.AreEqual(AnchorStyles.Left , C1.Anchor, "#73");
C1.SetBounds(10, 20, 30, 40) ;
- Assert.AreEqual( Rectangle.FromLTRB(10,20,30,40), C1.Bounds , "#74");
+ Assert.AreEqual( 20 ,C1.Bounds.Top , "#74a");
+ Assert.AreEqual( 10 ,C1.Bounds.Left , "#74b");
+ Assert.AreEqual( 30 ,C1.Bounds.Width , "#74c");
+ Assert.AreEqual( 40 ,C1.Bounds.Hight , "#74d");
- C1.SendToBack() ;
- Assert.AreEqual( false , C1.Bounds , "#75");
+ //C1.SendToBack() ;
+ //Assert.AreEqual( false , C1.Bounds , "#75");
}
@@ -137,7 +138,7 @@
B.Dock = DockStyle.Left;
B.ResumeLayout() ;
//Assert.AreEqual(false, B.Size , "#75a");
- Assert.AreEqual(false, B.Location , "#75b");
+ //Assert.AreEqual(false, B.Location , "#75b");
Assert.AreEqual(AnchorStyles.Top | AnchorStyles.Left , B.Anchor ,
"#75c");
Assert.AreEqual(DockStyle.None , B.Dock , "#75d");
@@ -207,16 +208,6 @@
}
- AutoResetEvent rs = new AutoResetEvent (false);
- void Show (object o)
- {
- Button N = new Button();
- N.Left = 10;
- N.Top = 12;
- N.Visible = true;
- rs.Set ();
- }
-
[Test]
public void PubMethodTest8()
{
@@ -493,18 +484,4 @@
}
}
- [Test]
- public void Test ()
- {
- Control c = null;
- try {
- } finally {
- if (c != null)
- c.Dispose ();
- }
- }
-
-
}
-
-}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches