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