//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldHandleMultipleShortest() public virtual void ShouldHandleMultipleShortest() { Path a = Graph.makePathWithRelProperty(_length, "a1-1-a2"); Path b = Graph.makePathWithRelProperty(_length, "b1-0-b2-1-b3-0-b4"); IList <Path> list = new List <Path>(); list.Add(a); list.Add(b); _topFetcher = new TopFetchingWeightedPathIterator(list.GetEnumerator(), _evaluator, _epsilon); IList <Path> result = new List <Path>(); while (_topFetcher.MoveNext()) { result.Add(_topFetcher.Current); } AssertPathsWithPaths(result, a, b); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldHandleUnsortedSource() public virtual void ShouldHandleUnsortedSource() { Path a = Graph.makePathWithRelProperty(_length, "a1-1-a2-2-a3"); // 3 Path b = Graph.makePathWithRelProperty(_length, "b1-3-b2-3-b3"); // 6 Path c = Graph.makePathWithRelProperty(_length, "c1-0-c2-1-c3"); // 1 Path d = Graph.makePathWithRelProperty(_length, "d1-3-d2-0-d3"); // 3 Path e = Graph.makePathWithRelProperty(_length, "e1-0-e2-0-e3-0-e4-1-e5"); // 1 IList <Path> list = Arrays.asList(a, b, c, d, e); _topFetcher = new TopFetchingWeightedPathIterator(list.GetEnumerator(), _evaluator, _epsilon); IList <Path> result = new List <Path>(); while (_topFetcher.MoveNext()) { result.Add(_topFetcher.Current); } AssertPathsWithPaths(result, c, e); }