//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void filter() internal virtual void Filter() { // GIVEN LongIterator items = PrimitiveLongCollections.Iterator(1, 2, 3); // WHEN LongIterator filtered = PrimitiveLongCollections.Filter(items, item => item != 2); // THEN AssertItems(filtered, 1, 3); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void arrayOfItemsAsIterator() internal virtual void ArrayOfItemsAsIterator() { // GIVEN long[] items = new long[] { 2, 5, 234 }; // WHEN LongIterator iterator = PrimitiveLongCollections.Iterator(items); // THEN AssertItems(iterator, items); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void asArray() internal virtual void AsArray() { // GIVEN LongIterator items = PrimitiveLongCollections.Iterator(1, 2, 3); // WHEN long[] array = PrimitiveLongCollections.AsArray(items); // THEN assertTrue(Arrays.Equals(new long[] { 1, 2, 3 }, array)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void count() internal virtual void Count() { // GIVEN LongIterator items = PrimitiveLongCollections.Iterator(1, 2, 3); // WHEN int count = PrimitiveLongCollections.Count(items); // THEN assertEquals(3, count); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void indexOf() internal virtual void IndexOf() { // GIVEN System.Func <LongIterator> items = () => PrimitiveLongCollections.Iterator(10, 20, 30); // THEN assertEquals(-1, PrimitiveLongCollections.IndexOf(items(), 55)); assertEquals(0, PrimitiveLongCollections.IndexOf(items(), 10)); assertEquals(1, PrimitiveLongCollections.IndexOf(items(), 20)); assertEquals(2, PrimitiveLongCollections.IndexOf(items(), 30)); }
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: //ORIGINAL LINE: public static PrimitiveLongResourceIterator iterator(org.neo4j.graphdb.Resource resource, final long... items) public static PrimitiveLongResourceIterator Iterator(Resource resource, params long[] items) { return(resourceIterator(PrimitiveLongCollections.Iterator(items), resource)); }