//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldThrowOnCommitInAutoCommit() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void ShouldThrowOnCommitInAutoCommit() { QueryExecutionKernelException e = assertThrows(typeof(QueryExecutionKernelException), () => TransactionStateMachine.State.AutoCommit.commitTransaction(_mutableState, _stateMachineSPI)); assertEquals("No current transaction to commit.", e.Message); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldThrowOnBeginInExplicitTransaction() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void ShouldThrowOnBeginInExplicitTransaction() { QueryExecutionKernelException e = assertThrows(typeof(QueryExecutionKernelException), () => TransactionStateMachine.State.ExplicitTransaction.beginTransaction(_mutableState, _stateMachineSPI, null, null, null)); assertEquals("Nested transactions are not supported.", e.Message); }