C# 如何将[assembly:PexLinqPackage]添加到测试项目

C# 如何将[assembly:PexLinqPackage]添加到测试项目,c#,c#-3.0,pex,pex-and-moles,C#,C# 3.0,Pex,Pex And Moles,我试图让Pex在我的项目中与linq合作。我得到了关于我需要做什么的解释: In order for Pex to support Linq, make sure you add a reference to Microsoft.Pex.Linq.dll and add the [assembly: PexLinqPackage] attribute to the test project. 为了使Pex支持Linq,请确保添加对的引用 并添加[程序集:PexLinqPackage] 属性设置

我试图让Pex在我的项目中与linq合作。我得到了关于我需要做什么的解释:

In order for Pex to support Linq, make sure you add a reference to Microsoft.Pex.Linq.dll and add the [assembly: PexLinqPackage] attribute to the test project. 为了使Pex支持Linq,请确保添加对的引用 并添加[程序集:PexLinqPackage] 属性设置为测试项目。
我已经添加了参考资料。但我从未向项目中添加过类似于[assembly:PexLinqPackage]的内容。这是如何完成的?

在测试项目中选择任何文件(
AssemblyInfo.cs
就可以了),并向其中添加一行
[assembly:PexLinqPackage]


您完全可以使用任何文件来添加程序集级属性,但是
AssemblyInfo.cs
似乎是最佳选择,因为它已经包含多个程序集级属性。

我同意Anton的观点,但我会更进一步,建议AssemblyInfo.cs不要将其放在任何文件中——将所有程序集属性装饰放在一个位置,以便更容易查找和管理。