如何让 DevExpress CodeRush 使用 tm 模板而不是 VS 2010 中的 Microsoft 测试方法创建 NUnit 测试方法

发布于 2024-09-12 23:27:41 字数 271 浏览 2 评论 0原文

当我尝试分别使用 t 和 tm 在 Visual Studio 2010 中执行测试或测试方法模板时,它给了我......

using Microsoft.VisualStudio.TestTools.UnitTesting;    
    [TestMethod]
    public void Test()
    {

    }

我希望它给我 nunit 装饰器,并停止添加对微软工具的使用引用。

我想不通。

谢谢。

when I try to execute the test or testmethod templates respectively in visual studio 2010 using t and tm respectively it is giving me ...

using Microsoft.VisualStudio.TestTools.UnitTesting;    
    [TestMethod]
    public void Test()
    {

    }

I want it to give me the nunit decorator instead and stop adding the using reference to the microsoft tooling.

I can't figure it out.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

夏了南城 2024-09-19 23:27:41

这可能是由于您的测试项目引用了“Microsoft.VisualStudio.TestTools.UnitTesting.dll”引起的,

删除此引用并将其替换为“nUnit.Framework.dll<” /strong>”,模板应该检测并使用它。

This is likely being caused by your test project having a reference to "Microsoft.VisualStudio.TestTools.UnitTesting.dll"

Remove this reference and replace it with one to "nUnit.Framework.dll", and the templates should detect and use that instead.

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