//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldHandleEmptySource() public virtual void ShouldHandleEmptySource() { _topFetcher = new TopFetchingWeightedPathIterator(Collections.emptyIterator(), _evaluator); //JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops: assertFalse("Expected iterator to be empty", _topFetcher.hasNext()); assertNull("Expected null after report has no next", _topFetcher.fetchNextOrNull()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldHandleSinglePath() public virtual void ShouldHandleSinglePath() { Path a = Graph.makePathWithRelProperty(_length, "a1-1-a2"); IList <Path> list = new List <Path>(); list.Add(a); _topFetcher = new TopFetchingWeightedPathIterator(list.GetEnumerator(), _evaluator, _epsilon); //JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops: assertTrue("Expected at least one element", _topFetcher.hasNext()); //JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops: AssertPathDef(a, _topFetcher.next()); //JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops: assertFalse("Expected no more elements", _topFetcher.hasNext()); assertNull("Expected null after report has no next", _topFetcher.fetchNextOrNull()); }