从来就不是基于assembly的,所以namespace不同的另一个类是不会受当前这个setup的影响的。
http://www.nunit.org/index.php?p=setupFixture&r=2.5.9
This is the attribute that marks a class that contains the one-time setup or teardown methods for all the test fixtures under a given namespace.
坑爹啊。。。。
NUNIT的setupFixture是基于namespace的
最新推荐文章于 2019-08-08 08:04:00 发布
本文探讨了在特定框架中,不同命名空间下的类如何不受某个特定setup过程的影响。重点介绍了标记包含一次性设置和清理方法的类的方法,并解释了为什么这些方法只作用于同一命名空间内的测试装置。
3095

被折叠的 条评论
为什么被折叠?



