diff options
author | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-10-14 17:47:12 +0400 |
---|---|---|
committer | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-10-14 17:47:12 +0400 |
commit | 113e7bfa8c4ace14af1e6bef2e433afc9dc9b615 (patch) | |
tree | fed84d8d180acb8718b74ecbe97c8f6beb63835f /mcs/class/System.Data/Test | |
parent | 101f9288904ba2629654a5002bc49ab232ea754e (diff) |
In Test/System.Data:
2005-10-14 Sureshkumar T <tsureshkumar@novell.com>
* DataViewTest_IBindingList.cs (FindTest): mark working. According
to printed DataView, the index returned is correct.
In System.Data:
(IBindingList.Find): Implemented.
svn path=/trunk/mcs/; revision=51719
Diffstat (limited to 'mcs/class/System.Data/Test')
-rw-r--r-- | mcs/class/System.Data/Test/System.Data/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Data/Test/System.Data/DataViewTest_IBindingList.cs | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/mcs/class/System.Data/Test/System.Data/ChangeLog b/mcs/class/System.Data/Test/System.Data/ChangeLog index 152379d07d2..4d7662ccdf3 100644 --- a/mcs/class/System.Data/Test/System.Data/ChangeLog +++ b/mcs/class/System.Data/Test/System.Data/ChangeLog @@ -1,3 +1,8 @@ +2005-10-14 Sureshkumar T <tsureshkumar@novell.com> + + * DataViewTest_IBindingList.cs (FindTest): mark working. According + to printed DataView, the index returned is correct. + 2005-10-11 Sureshkumar T <tsureshkumar@novell.com> * DataViewTest_IBindingList.cs: Added test cases for IBindingList diff --git a/mcs/class/System.Data/Test/System.Data/DataViewTest_IBindingList.cs b/mcs/class/System.Data/Test/System.Data/DataViewTest_IBindingList.cs index 1655e8c8ee4..8d527975d40 100644 --- a/mcs/class/System.Data/Test/System.Data/DataViewTest_IBindingList.cs +++ b/mcs/class/System.Data/Test/System.Data/DataViewTest_IBindingList.cs @@ -167,10 +167,10 @@ namespace MonoTests.System.Data } [Test] - [Category ("NotWorking")] // Feature not yet implemented public void FindTest () { DataView dv = dt.DefaultView; + IBindingList ib = (IBindingList) dv; ib.ListChanged += new ListChangedEventHandler (OnListChanged); try { @@ -179,7 +179,7 @@ namespace MonoTests.System.Data PropertyDescriptorCollection pds = ( (ITypedList) dv).GetItemProperties (null); PropertyDescriptor pd = pds.Find ("id", false); int index = ib.Find (pd, 15); - Assert.AreEqual (2, index, "#1"); + Assert.AreEqual (1, index, "#1"); // negative search index = ib.Find (pd, 44); |