Browse Source

* DefaultLayoutTest.cs: Fixed line endings.
* BindingSourceTest.cs: Remove a couple of warnings.

svn path=/trunk/mcs/; revision=74722

Rolf Bjarne Kvinge 19 years ago
parent
commit
c2ff0b0c08

+ 4 - 0
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/BindingSourceTest.cs

@@ -711,6 +711,8 @@ namespace MonoTests.System.Windows.Forms {
 			BindingSource source = new BindingSource ();
 			source.DataSource = new ReadOnlyList ();
 			object o = source.AddNew ();
+			
+			TestHelper.RemoveWarning (o);
 		}
 
 		[Test]
@@ -722,6 +724,8 @@ namespace MonoTests.System.Windows.Forms {
 			BindingSource source = new BindingSource ();
 			source.DataSource = new List<string>();
 			object o = source.AddNew ();
+			
+			TestHelper.RemoveWarning (o);
 		}
 
 		[Test]

+ 5 - 0
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog

@@ -1,3 +1,8 @@
+2007-03-21  Rolf Bjarne Kvinge <[email protected]> 
+
+	* DefaultLayoutTest.cs: Fixed line endings.
+	* BindingSourceTest.cs: Remove a couple of warnings.
+
 2007-03-19  Carlos Alberto Cortez <[email protected]>
 
 	* ListViewItemTest.cs: Add test for BackColor, ForeColor,

+ 10 - 10
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DefaultLayoutTest.cs

@@ -389,8 +389,8 @@ namespace MonoTests.System.Windows.Forms
 			Assert.AreEqual (new Size (100, 100), c.Size, "A1");
 			
 			f.Dispose ();
-		}
-
+		}
+
 		private class DisplayRectangleForm : Form
 		{
 			public override Rectangle DisplayRectangle
@@ -401,14 +401,14 @@ namespace MonoTests.System.Windows.Forms
 		
 		[Test]  // bug 80912
 		public void AnchoredControlWithZeroWidthAndHeight ()
-		{
-			Form f = new Form ();
-			f.ShowInTaskbar = false;
-			
-			Control c = new Control ();
-			c.Anchor = AnchorStyles.Left | AnchorStyles.Right;
-			f.Controls.Add (c);
-
+		{
+			Form f = new Form ();
+			f.ShowInTaskbar = false;
+			
+			Control c = new Control ();
+			c.Anchor = AnchorStyles.Left | AnchorStyles.Right;
+			f.Controls.Add (c);
+
 			Assert.AreEqual (new Rectangle (0, 0, 0, 0), c.Bounds, "N1");
 		}
 	}