Mbunit 测试未加载

发布于 2024-10-07 05:16:19 字数 118 浏览 0 评论 0原文

我正在使用 Mbunit,并且我已经在 Mbunit 中编写了测试。但是,当我尝试运行测试时,它给了我一个错误:

没有运行任何测试,因为测试未加载或禁用。

I am using Mbunit, and I have written the tests in Mbunit. However, when I am trying to run the tests, it gives me an error:

No tests were run because the tests are not loaded or disabled.

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

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

发布评论

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

评论(1

吲‖鸣 2024-10-14 05:16:19

您需要提供更多信息,例如使用什么版本的 MbUnit 以及使用什么测试运行程序?

如果您使用版本 2,请确保使用 [TextFixture] 属性装饰您的类,并使用 [Test] 1 装饰测试方法。

You need to give more information such as what version of MbUnit do use and what test runner do use?

If you use version 2 than make sure that decorated your class with [TextFixture] attribute and the test method with [Test] one.

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