//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldHaveIdempotentCloseMethods() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldHaveIdempotentCloseMethods() { // given SegmentFile segment = create(FsRule.get(), _fileNames.getForVersion(0), _readerPool, 0, _contentMarshal, _logProvider, _segmentHeader); IOCursor <EntryRecord> cursor = segment.GetCursor(0); // when segment.CloseWriter(); cursor.close(); // then assertTrue(segment.TryClose()); segment.Close(); assertTrue(segment.TryClose()); segment.Close(); }