+2007-11-08 Jb Evain <jbevain@novell.com>
+
+ * EnumerableTest.cs: add simple test for intersect.
+
2007-11-06 Jb Evain <jbevain@novell.com>
* EnumerableTest.cs: add simple test for Except.
AssertAreSame (result, first.Except (second));
}
+ [Test]
+ public void TestSimpleIntersect ()
+ {
+ int [] first = {0, 1, 2, 3, 4, 5};
+ int [] second = {2, 4, 6};
+ int [] result = {2, 4};
+
+ AssertAreSame (result, first.Intersect (second));
+ }
+
static void AssertAreSame<T> (IEnumerable<T> expected, IEnumerable<T> actual)
{
if (expected == null) {