Linq Unit Test Suite

There is a set of 101 samples for LINQ here

I'm sure I saw someone referring to a set of unit tests that test this functionality. This is primarily for someone creating a LINQ provider to make sure they all implement correctly.

Can someone provide a link to these unit tests, if they exist?

+4
source share
2 answers

BackLINQ ( http://www.raboof.com/Projects/BackLINQ/ ) is a project that implements a number of LINQ operations against .NET 2.0. The project is open source and they submitted the source code for their unit tests ( http://backlinq.googlecode.com/svn/trunk/test/BackLINQ.Tests/EnumerableFixture.cs ). You can adapt these tests to your needs.

There is also a project organized by CodePlex called "Custom Implementation of the .NET Standard Query Operators from LINQ" ( http://linqsqo.codeplex.com/ ) which includes a source for a similar set of tests.

+2
source

You may be looking for Jon Skeet EduLINQ .

Note that it writes LINQ to the implementation of objects; some of its tests will not be applicable to database-based implementations.

0
source

Source: https://habr.com/ru/post/1347723/


All Articles