public void ExecuteInTransactionTest() { var manager = new MiniSessionManager(); manager.ExecuteInTransaction(() => { }); Assert.ThrowsException <Exception>(() => { manager.ExecuteInTransaction(() => { throw new Exception(); }); }); }