public override void Run() { try { for (int i = 0; i < AtLeast(100); ++i) { int idx = Random().Next(NumDocs); int docID = OuterInstance.DocID(Reader, "" + idx); OuterInstance.AssertEquals(Docs[idx], Reader.GetTermVectors(docID)); } } catch (Exception t) { this.ARException.Value = t; } }
public override void Run() { try { for (int i = 0; i < AtLeast(100); ++i) { int idx = Random.Next(numDocs); int docID = outerInstance.DocID(reader, "" + idx); outerInstance.AssertEquals(docs[idx], reader.GetTermVectors(docID)); } } catch (Exception t) when(t.IsThrowable()) { this.exception.Value = t; } }