//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRollbackParentIfFailureCalled() public virtual void ShouldRollbackParentIfFailureCalled() { // When _placeboTx.failure(); _placeboTx.close(); // Then verify(_kernelTransaction, times(2)).failure(); // We accept two calls to failure, since KernelTX#failure is idempotent }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void tearDown() public virtual void TearDown() { if (_bridge.hasTransaction()) { _tx.failure(); _tx.close(); } }
public virtual void Failure() { try { if (_tx != null) { _tx.failure(); _tx.close(); } } finally { _tx = null; } }