NUNIT的setupFixture是基于namespace的

从来就不是基于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.

坑爹啊。。。。

发表回复