Author: jbevain
Date: 2007-11-08 14:24:09 -0500 (Thu, 08 Nov 2007)
New Revision: 89236

Modified:
   trunk/mcs/class/System.Core/Test/System.Linq/ChangeLog
   trunk/mcs/class/System.Core/Test/System.Linq/EnumerableTest.cs
Log:
2007-11-08  Jb Evain  <[EMAIL PROTECTED]>

        * EnumerableTest.cs: add simple test for Union.



Modified: trunk/mcs/class/System.Core/Test/System.Linq/ChangeLog
===================================================================
--- trunk/mcs/class/System.Core/Test/System.Linq/ChangeLog      2007-11-08 
19:21:59 UTC (rev 89235)
+++ trunk/mcs/class/System.Core/Test/System.Linq/ChangeLog      2007-11-08 
19:24:09 UTC (rev 89236)
@@ -1,5 +1,9 @@
 2007-11-08  Jb Evain  <[EMAIL PROTECTED]>
 
+       * EnumerableTest.cs: add simple test for Union.
+
+2007-11-08  Jb Evain  <[EMAIL PROTECTED]>
+
        * EnumerableTest.cs: add simple test for intersect.
 
 2007-11-06  Jb Evain  <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/System.Core/Test/System.Linq/EnumerableTest.cs
===================================================================
--- trunk/mcs/class/System.Core/Test/System.Linq/EnumerableTest.cs      
2007-11-08 19:21:59 UTC (rev 89235)
+++ trunk/mcs/class/System.Core/Test/System.Linq/EnumerableTest.cs      
2007-11-08 19:24:09 UTC (rev 89236)
@@ -59,6 +59,16 @@
                        AssertAreSame (result, first.Intersect (second));
                }
 
+               [Test]
+               public void TestSimpleUnion ()
+               {
+                       int [] first = {0, 1, 2, 3, 4, 5};
+                       int [] second = {2, 4, 6};
+                       int [] result = {0, 1, 2, 3, 4, 5, 6};
+
+                       AssertAreSame (result, first.Union (second));
+               }
+
                static void AssertAreSame<T> (IEnumerable<T> expected, 
IEnumerable<T> actual)
                {
                        if (expected == null) {

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

Reply via email to