和测试驱动.Net

发布于 2024-07-24 05:00:08 字数 206 浏览 1 评论 0原文

在使用 TestDriven.Net 运行测试时,是否有人遇到过使用 mstest 属性 [AssemblyInitialize] 的任何问题?

我尝试过 2.14 RTM 和 2.22 RTM,但似乎都不适合我。 当我执行测试时,程序集 init 方法没有被执行。 就好像 TD.Net 无法识别该属性一样。

欢迎任何提示/想法/线索! 谢谢!

Has anyone experienced any issues with using the mstest attribute [AssemblyInitialize] when running tests with TestDriven.Net?

I've tried 2.14 RTM and 2.22 RTM and neither seem to work for me. When I execute the test, the assembly init method isn't being executed. It's like TD.Net doesn't recongize the attribute.

Any tips/ideas/clues is welcome! Thanks!

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

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

发布评论

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

评论(1

黒涩兲箜 2024-07-31 05:00:08

如果没记错的话,TD.NET 是基于 NUnit 构建的,而 NUnit 不支持 AssemblyInitialize 或 AssemblyCleanup(我认为它没有类似的东西)。

If memory serves TD.NET is built on NUnit and NUnit does not support AssemblyInitialize or AssemblyCleanup (and I don't think it has anything like them).

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