简体   繁体   English

Linq单元测试套件

[英]Linq Unit Test Suite

There are a set of 101 samples for LINQ here 有一组101个样本LINQ 这里

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. 它主要用于创建LINQ提供程序的人员,以确保他们正确实现了所有内容。

Can anyone provide a link to these unit tests if they exist? 谁能提供这些单元测试的链接(如果存在)?

BackLINQ ( http://www.raboof.com/Projects/BackLINQ/ ) is a project which implements a number of LINQ operations against .NET 2.0. BackLINQ( http://www.raboof.com/Projects/BackLINQ/ )是一个针对.NET 2.0实现许多LINQ操作的项目。 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 ). 该项目是开源的,他们已经发布了单元测试的源代码( 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. 还有一个CodePlex托管项目,名为“ LINQ的.NET标准查询操作符的自定义实现”( http://linqsqo.codeplex.com/ ),其中包括类似测试套件的源代码。

You may be looking for Jon Skeet's EduLINQ . 您可能正在寻找Jon Skeet的EduLINQ

Note that he's writinga LINQ to Objects implementation; 注意,他正在编写LINQ to Objects实现。 some of his tests will not be applicable to DB-based implementations. 他的某些测试不适用于基于DB的实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM