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