[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] r109380 -
From: "Carlos Alberto Cortes (calberto.cortez () gmail ! com)"
Date: 2008-07-31 19:18:28
Message-ID: 20080731191828.67AAC9472C () mono-cvs ! ximian ! com
[Download RAW message or body]
Author: calberto
Date: 2008-07-31 15:18:27 -0400 (Thu, 31 Jul 2008)
New Revision: 109380
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListBindingHelperTest.cs
Log:
2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListBindingHelperTest.cs: New test for GetList receiving an IEnumerable
object which return instances of ICustomTypeDescriptor instances,
instead of actual items.
Modified: trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog 2008-07-31 \
19:15:25 UTC (rev 109379)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog 2008-07-31 \
19:18:27 UTC (rev 109380) @@ -1,3 +1,9 @@
+2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * ListBindingHelperTest.cs: New test for GetList receiving an IEnumerable
+ object which return instances of ICustomTypeDescriptor instances,
+ instead of actual items.
+
2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
* TableLayoutTest.cs: Add tests for bug #412582
Modified: trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListBindingHelperTest.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListBindingHelperTest.cs 2008-07-31 \
19:15:25 UTC (rev 109379)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListBindingHelperTest.cs 2008-07-31 \
19:18:27 UTC (rev 109380) @@ -96,6 +96,15 @@
obj = ListBindingHelper.GetList (str_coll, "Length");
Assert.IsNull (obj, "#H1");
+ // IEnumerable that returns instances of ICustomTypeDescriptor
+ // Use DataTable as source, which returns, when enumerating,
+ // instances of DataRowView, which in turn implement ICustomTypeDescriptor
+ DataTable table = new DataTable ();
+ table.Columns.Add ("Id", typeof (int));
+ table.Rows.Add (666);
+ object l = ListBindingHelper.GetList (table, "Id");
+ Assert.AreEqual (666, l, "#J1");
+
try {
ListBindingHelper.GetList (list_container, "DontExist");
Assert.Fail ("#EXC1");
_______________________________________________
Mono-patches maillist - Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic