Try [Rollback2] from the MbUnit.Framework.2.0 assembly. Jeff.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Sent: Monday, December 31, 2007 10:40 AM To: MbUnit.User Subject: MbUnit Simple rollback doesn't work I'm just getting started with MBUnit, so bear with me. The simple test below leaves the row inserted by project.Save(conn) in the database and I just can't see where it could be failing. I'm using VS 2005 and MBUnit 2.4.197. The database is SQL Server 2000 on the local box. [SetUp] public void Setup() { conn.Open(); } [TearDown] public void TearDown() { if (conn.State == System.Data.ConnectionState.Open) conn.Close(); } [Test] [RollBack] public void SaveNewFull() { M2M.BL.Project project = new M2M.BL.Project("123", "Contract for 123", "SaveNewFull"); project.Save(conn); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
