//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldHandleEmptyLogsMidStream() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldHandleEmptyLogsMidStream() { // GIVEN TransactionCursor cursor = new ReversedMultiFileTransactionCursor(Log(5, 0, 2, 0, 3), 4, start(0)); // WHEN CommittedTransactionRepresentation[] reversed = exhaust(cursor); // THEN AssertTransactionRange(reversed, 5 + 2 + 3, 0); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldReadMultipleVersionsReversed() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldReadMultipleVersionsReversed() { // GIVEN TransactionCursor cursor = new ReversedMultiFileTransactionCursor(Log(5, 3, 8), 2, start(0)); // WHEN CommittedTransactionRepresentation[] reversed = exhaust(cursor); // THEN AssertTransactionRange(reversed, 5 + 3 + 8, 0); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRespectStartLogPosition() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldRespectStartLogPosition() { // GIVEN TransactionCursor cursor = new ReversedMultiFileTransactionCursor(Log(5, 6, 8), 2, new LogPosition(1, LOG_HEADER_SIZE + 3)); // WHEN CommittedTransactionRepresentation[] reversed = exhaust(cursor); // THEN AssertTransactionRange(reversed, 5 + 6 + 8, 5 + 3); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldHandleEmptySingleLogVersion() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldHandleEmptySingleLogVersion() { // GIVEN TransactionCursor cursor = new ReversedMultiFileTransactionCursor(Log(0), 0, start(0)); // WHEN CommittedTransactionRepresentation[] reversed = exhaust(cursor); // THEN AssertTransactionRange(reversed, 0, 0); }