//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldReturnEmptyIteratorWhenNoDocValues() internal void ShouldReturnEmptyIteratorWhenNoDocValues() { // given DocValuesCollector collector = new DocValuesCollector(false); IndexReaderStub readerStub = IndexReaderWithMaxDocs(42); // when collector.DoSetNextReader(readerStub.Context); // then DocValuesCollector.LongValuesIterator valuesIterator = collector.GetValuesIterator("id"); assertEquals(0, valuesIterator.Remaining()); assertFalse(valuesIterator.HasNext()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldReadDocValuesInIndexOrder() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal void ShouldReadDocValuesInIndexOrder() { // given DocValuesCollector collector = new DocValuesCollector(false); IndexReaderStub readerStub = IndexReaderWithMaxDocs(42); // when collector.DoSetNextReader(readerStub.Context); collector.Collect(1); collector.Collect(2); // then DocValuesCollector.LongValuesIterator valuesIterator = collector.GetValuesIterator("id"); assertEquals(2, valuesIterator.Remaining()); assertEquals(1, valuesIterator.Next()); assertEquals(2, valuesIterator.Next()); assertFalse(valuesIterator.HasNext()); }