Author: atsushi
Date: 2005-06-14 09:29:49 -0400 (Tue, 14 Jun 2005)
New Revision: 45966

Modified:
   trunk/mcs/class/System.Data/Test/System.Data/ChangeLog
   trunk/mcs/class/System.Data/Test/System.Data/DataSetTest.cs
Log:
2005-06-14  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * DataSetTest.cs : quick build fix.



Modified: trunk/mcs/class/System.Data/Test/System.Data/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/Test/System.Data/ChangeLog      2005-06-14 
13:19:00 UTC (rev 45965)
+++ trunk/mcs/class/System.Data/Test/System.Data/ChangeLog      2005-06-14 
13:29:49 UTC (rev 45966)
@@ -1,3 +1,7 @@
+2005-06-14  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * DataSetTest.cs : quick build fix.
+
 2005-06-14  Sureshkumar T  <[EMAIL PROTECTED]>
 
        * DataSetTest.cs: Added test case for GetChanges method.

Modified: trunk/mcs/class/System.Data/Test/System.Data/DataSetTest.cs
===================================================================
--- trunk/mcs/class/System.Data/Test/System.Data/DataSetTest.cs 2005-06-14 
13:19:00 UTC (rev 45965)
+++ trunk/mcs/class/System.Data/Test/System.Data/DataSetTest.cs 2005-06-14 
13:29:49 UTC (rev 45966)
@@ -43,6 +43,8 @@
 using System.Threading;
 using System.Text;
 
+using AssertType = NUnit.Framework.Assert;
+
 namespace MonoTests.System.Data
 {
        [TestFixture]
@@ -1992,17 +1994,17 @@
                        child.Rows [1]["parent"] = 4;
                        DataSet changes = ds.GetChanges ();
                        DataRow row = changes.Tables ["parent"].Rows[0];
-                       Assert.AreEqual ((int) parent.Rows [3][0], (int) row 
[0], "#RT1");
-                       Assert.AreEqual (1, changes.Tables 
["parent"].Rows.Count, "#RT2 only get parent row with current version");
+                       AssertType.AreEqual ((int) parent.Rows [3][0], (int) 
row [0], "#RT1");
+                       AssertType.AreEqual (1, changes.Tables 
["parent"].Rows.Count, "#RT2 only get parent row with current version");
                        ds.RejectChanges ();
 
                        // delete a child row and get changes.
                        child.Rows [0].Delete ();
                        changes = ds.GetChanges ();
                        
-                       Assert.AreEqual (changes.Tables.Count, 2, "#RT3 Should 
import parent table as well");
-                       Assert.AreEqual (1, changes.Tables 
["parent"].Rows.Count, "#RT4 only get parent row with original version");
-                       Assert.AreEqual (1, (int) changes.Tables 
["parent"].Rows [0][0], "#RT5 parent row based on original version");
+                       AssertType.AreEqual (changes.Tables.Count, 2, "#RT3 
Should import parent table as well");
+                       AssertType.AreEqual (1, changes.Tables 
["parent"].Rows.Count, "#RT4 only get parent row with original version");
+                       AssertType.AreEqual (1, (int) changes.Tables 
["parent"].Rows [0][0], "#RT5 parent row based on original version");
                }
                #endregion // DataSet.GetChanges Tests
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to