[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] r114510 -
From: "Jb Evain (jbevain () gmail ! com)" <mono-patches-list () lists ! ximian ! com>
Date: 2008-09-30 21:22:49
Message-ID: 20080930212249.EBE169472C () mono-cvs ! ximian ! com
[Download RAW message or body]
Author: jbevain
Date: 2008-09-30 17:22:49 -0400 (Tue, 30 Sep 2008)
New Revision: 114510
Modified:
trunk/mcs/class/System.Core/Test/System.Linq/QueryableTest.cs
Log:
add test for IQueryable.ElementType
Modified: trunk/mcs/class/System.Core/Test/System.Linq/QueryableTest.cs
===================================================================
--- trunk/mcs/class/System.Core/Test/System.Linq/QueryableTest.cs 2008-09-30 21:21:53 UTC (rev 114509)
+++ trunk/mcs/class/System.Core/Test/System.Linq/QueryableTest.cs 2008-09-30 21:22:49 UTC (rev 114510)
@@ -41,6 +41,15 @@
public class QueryableTest {
[Test]
+ public void TestElementType ()
+ {
+ var data = new int [] { 1, 2, 3 };
+ var queryable = data.AsQueryable ();
+
+ Assert.AreEqual (typeof (int), queryable.ElementType);
+ }
+
+ [Test]
public void TestCount ()
{
var q = CreateQueryable<string> ();
_______________________________________________
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