//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void doNotPruneNonCorruptedLogs() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void DoNotPruneNonCorruptedLogs() { Life.start(); GenerateTransactionLogFiles(_logFiles); long highestLogVersion = _logFiles.HighestLogVersion; long fileSizeBeforePrune = _logFiles.HighestLogFile.length(); LogPosition endOfLogsPosition = new LogPosition(highestLogVersion, fileSizeBeforePrune); assertEquals(TOTAL_NUMBER_OF_LOG_FILES - 1, highestLogVersion); _logPruner.truncate(endOfLogsPosition); assertEquals(TOTAL_NUMBER_OF_LOG_FILES, _logFiles.logFiles().Length); assertEquals(fileSizeBeforePrune, _logFiles.HighestLogFile.length()); assertTrue(ArrayUtil.isEmpty(_databaseDirectory.listFiles(File.isDirectory))); }