阅读背景:

在DB事务中自动包装单元测试?

来源:互联网 

[Edit (Haren): Duplicate]

[编辑(哈伦):重复]

I'm looking for a way to automatically wrap my NUnit integration tests in a DB transaction, so that changes made by the test are automatically rolled back when the test ends. Ideally, I would decorate certain test methods with a custom attribute that would cause NUnit to create a transaction when the test starts and roll it back when the test ends... I can write the attribute, but I don't know where to add a check for it.I'm




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: