如何将 [程序集: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.
我添加了参考。但我从来没有必要向项目中添加像 [ assembly: PexLinqPackage] 这样的东西。这是怎么做到的?
I am trying to get Pex to work with linq in my project. I got this explanation on what I need to do:
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.
I have the reference added. But I have never had to add anything like [assembly: PexLinqPackage] to a project. How is this done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
选择测试项目中的任何文件(
AssemblyInfo.cs
就可以了)并向其添加[assemble: PexLinqPackage]
行。您绝对可以使用任何文件来添加程序集级属性,但
AssemblyInfo.cs
似乎是最佳选择,因为它已经包含多个程序集级属性。Pick any file in the test project (
AssemblyInfo.cs
will do just fine) and add a[assembly: PexLinqPackage]
line to it.You can use absolutely any file to add assembly-level attributes, but
AssemblyInfo.cs
seems to be the best choice since it already contains several assembly-level attributes.