2006-05-16 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Tue, 16 May 2006 23:10:57 +0000 (23:10 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 16 May 2006 23:10:57 +0000 (23:10 -0000)
* DataGridTest.cs: Add a test case based on 78420, confirm that
the fix works.

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

mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/DataGridTest.cs

index d70bd634a1fa86930348a51db3d81b3a8b55843e..5687dca80a15f7bcc1fd5ffdeba9d2b7680589cc 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-16  Miguel de Icaza  <miguel@novell.com>
+
+       * DataGridTest.cs: Add a test case based on 78420, confirm that
+       the fix works.
+
 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
 
        * TabControlTest.cs : added test for bug #78395.
index 77b061906a1d25731d397532c6b4466451231b6a..7858b676fdb6df1a3fda2dddcecc10047d50dc26 100644 (file)
@@ -31,6 +31,7 @@ using System.Drawing;
 using System.Windows.Forms;
 using System.Xml;
 using NUnit.Framework;
+using System.Data;
 
 namespace MonoTests.System.Windows.Forms
 {
@@ -310,5 +311,16 @@ namespace MonoTests.System.Windows.Forms
                        Assert.AreEqual (dg.SelectionForeColor, dg2.SelectionForeColor, "A1");
                }
 
+               [Test] public void TestSetDataBinding ()
+               {
+                       DataGrid dg = new DataGrid ();
+                       DataSet ds = new DataSet ("DataSet");
+                       DataTable dt = new DataTable ("DataTable");
+                       DataColumn dc = new DataColumn ("C");
+                       ds.Tables.Add (dt);
+
+                       dg.SetDataBinding (ds, "DataTable");
+                       
+               }
        }
 }