Nunit测试方法每次都会调用[Setup] [英] Nunit test method will call [Setup] in every time

查看:189
本文介绍了Nunit测试方法每次都会调用[Setup]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有多种测试方法。 [setup]方法将调用每个测试。所以我的测试应用程序变得太慢了。任何在一次运行设置的方法,以及如何解决缓慢的过程。

Hi I've multiple Test Methods. The [setup] method will call each and every test. So My Test App getting too slow. any ways to run setup in a single time nor how to resolve the slow process.

推荐答案

尝试[TestFixtureSetUp]而不是[Setup]。
Try [TestFixtureSetUp] instead of [Setup].


这篇关于Nunit测试方法每次都会调用[Setup]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆