如何指定 mbunit 中的所有测试只应运行一次设置方法?
到目前为止,SetUp属性指定setup方法应该在每个测试方法之前运行一次,是否有一个属性可以指定setup方法应该对所有测试方法只运行一次?
so far, the SetUp property specifies the setup method should be run once before every test method, is there a property can specify the setup method should be run only once for all test method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定是否应该使用这样的东西。
但是
FixtureSetupAttribute
接近您所看到的为了。I am not sure, if one should use such a thing.
But
FixtureSetupAttribute
comes close to what you are looking for.