public AssertingAtomicReader(AtomicReader @in) : base(@in) { // check some basic reader sanity Debug.Assert(@in.MaxDoc() >= 0); Debug.Assert(@in.NumDocs() <= @in.MaxDoc()); Debug.Assert(@in.NumDeletedDocs() + @in.NumDocs() == @in.MaxDoc()); Debug.Assert([email protected]() || @in.NumDeletedDocs() > 0 && @in.NumDocs() < @in.MaxDoc()); }