Alistair Doulin
Alistair Doulin

Reputation: 475

Linq Unit Test Suite

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

Answers (2)

Jim Liddell
Jim Liddell

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

SLaks
SLaks

Reputation: 888067

You may be looking for Jon Skeet's EduLINQ.

Note that he's writinga LINQ to Objects implementation; some of his tests will not be applicable to DB-based implementations.

Upvotes: 0

Related Questions