//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldDeduplicate() internal virtual void ShouldDeduplicate() { // GIVEN int[] array = new int[] { 1, 6, 2, 5, 6, 1, 6 }; // WHEN int[] deduped = PrimitiveIntCollections.Deduplicate(array); // THEN assertArrayEquals(new int[] { 1, 6, 2, 5 }, deduped); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void deduplicate() internal virtual void Deduplicate() { // GIVEN PrimitiveIntIterator items = PrimitiveIntCollections.Iterator(1, 1, 2, 3, 2); // WHEN PrimitiveIntIterator deduped = PrimitiveIntCollections.Deduplicate(items); // THEN AssertItems(deduped, 1, 2, 3); }