public void RollbackSavepointException() { ISmartTransactionObject transaction = MockRepository.GenerateMock <ISmartTransactionObject>(); DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object()); stat.RollbackToSavepoint(null); }
public void RollbackSavepointException() { ISmartTransactionObject transaction = A.Fake <ISmartTransactionObject>(); DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object()); Assert.Throws <NestedTransactionNotSupportedException>(() => stat.RollbackToSavepoint(null)); }
public void RollbackSavepointException() { ISmartTransactionObject transaction = MockRepository.GenerateMock<ISmartTransactionObject>(); DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object()); stat.RollbackToSavepoint(null); }
public void RollbackSavepointException() { DefaultTransactionStatus stat = new DefaultTransactionStatus( new MyMockTxnObject(), true, false, false, true, new object() ); stat.RollbackToSavepoint(null); }
public void RollbackSavepointException() { ISmartTransactionObject transaction = MockRepository.GenerateMock<ISmartTransactionObject>(); DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object()); Assert.Throws<NestedTransactionNotSupportedException>(() => stat.RollbackToSavepoint(null)); }
public void RollbackSavepointException() { DefaultTransactionStatus stat = new DefaultTransactionStatus(new MyMockTxnObject(), true, false, false, true, new object()); stat.RollbackToSavepoint(null); }