public override void Dispose() { IsOpen = false; if (CheckIndexOnClose_Renamed && DirectoryReader.IndexExists(this)) { TestUtil.CheckIndex(this, CrossCheckTermVectorsOnClose_Renamed); } base.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { isOpen = false; if (checkIndexOnClose && DirectoryReader.IndexExists(this)) { TestUtil.CheckIndex(this, crossCheckTermVectorsOnClose); } base.Dispose(disposing); } }