Reputation: 475
There are a set of 101 samples for LINQ here
I am sure I've seen someone make reference to a set of unit tests that test this functionality. It's primarily for someone creating a LINQ provider to make sure they implement everything correctly.
Can anyone provide a link to these unit tests if they exist?
Upvotes: 4
Views: 246
Reputation: 524
BackLINQ (http://www.raboof.com/Projects/BackLINQ/) is a project which implements a number of LINQ operations against .NET 2.0. The project is open source and they have posted the source code for their unit tests (http://backlinq.googlecode.com/svn/trunk/test/BackLINQ.Tests/EnumerableFixture.cs). You may be able to adapt these tests for your needs.
There is also a CodePlex hosted project called 'A custom implementation of the .NET Standard Query Operators from LINQ' (http://linqsqo.codeplex.com/), which includes the source for a similar test suite.
Upvotes: 2