开发者

How does one create a global testfixturesetup routine with MBUnit and C#?

I'm using MBUnit for my test project and have a setup routine that must run before several different test fixtures can run properly.

Currently in each TestFixture I've got the [TestFixtureSetup] attribute on a routine that performs this, but the logic is unnecessarily duplicated in each individual test fixture.开发者_运维百科

What method is used to create a TestFixtureSetup routine that will run before any TestFixture is ran?


In MbUnit v3, use [AssemblyFixture].

In MbUnit v2, use [AssemblyCleanUp].

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜