// Timeout because test verify no infinite loop //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(timeout = 10_000L) public void shouldHandleDescendingWithEmptyRange() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldHandleDescendingWithEmptyRange() { long[] seeds = new long[] { 0, 1, 4 }; using (GBPTree <KEY, VALUE> index = CreateIndex()) { // Write using (Writer <KEY, VALUE> writer = CreateWriter(index)) { foreach (long seed in seeds) { KEY key = _layout.key(seed); VALUE value = _layout.value(0); writer.Put(key, value); } } KEY from = _layout.key(3); KEY to = _layout.key(1); using (RawCursor <Hit <KEY, VALUE>, IOException> seek = index.Seek(from, to)) { assertFalse(seek.Next()); } index.Checkpoint(Org.Neo4j.Io.pagecache.IOLimiter_Fields.Unlimited); } }
private VALUE Value(long seed) { return(_layout.value(seed)); }