//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public synchronized void stop() throws Throwable public override void Stop() { lock (this) { _readerPoolPruner.cancel(false); _readerPool.close(); _state.segments.close(); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldDisposeAllReleasedReaders() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldDisposeAllReleasedReaders() { // given Reader readerA = spy(_pool.acquire(0, 0)); Reader readerB = spy(_pool.acquire(0, 0)); Reader readerC = spy(_pool.acquire(0, 0)); _pool.release(readerA); _pool.release(readerB); _pool.release(readerC); // when _pool.close(); // then verify(readerA).close(); verify(readerB).close(); verify(readerC).close(); }