|
MbUnit : RollbackAttribute
This page last changed on Jul 20, 2006 by poobah.
This feature is based on an a concept by Roy Osherove, you can see Peli's original post on this here RollbackAttribute uses System.EnterpriseServices to create a COM+ 1.5 domain around the test call. Therefore, all your tests are backup back transactions. Since EnterpriseServices is a .Net 1.1 feature, this attribute has been separated from MbUnit.Framework.dll assembly. It lives in MbUnit.Framework.1.1.dll attribute. Unable to find source-code formatter for language: cs. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml [Test] [RollBack] public void SomeDatabaseTest() { // all database transactions in this method will be rolledback. ... } |
| Document generated by Confluence on Jun 11, 2007 11:56 |