如何将 [程序集:PexLinqPackage] 添加到测试项目

发布于 2024-08-26 01:29:41 字数 317 浏览 3 评论 0原文

我正在尝试让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥抱我好吗 2024-09-02 01:29:41

选择测试项目中的任何文件(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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文