public virtual void TestBufferedIndexInputRead() { IndexInput @is = new MockIndexInput(READ_TEST_BYTES); CheckReads(@is, typeof(IOException)); @is.Dispose(); @is = new MockIndexInput(RANDOM_TEST_BYTES); CheckRandomReads(@is); @is.Dispose(); }