//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void useCollectionsFactory() public virtual void UseCollectionsFactory() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.eclipse.collections.api.set.primitive.MutableLongSet set1 = new org.eclipse.collections.impl.set.mutable.primitive.LongHashSet(); MutableLongSet set1 = new LongHashSet(); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.eclipse.collections.api.set.primitive.MutableLongSet set2 = new org.eclipse.collections.impl.set.mutable.primitive.LongHashSet(); MutableLongSet set2 = new LongHashSet(); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.neo4j.kernel.impl.util.collection.CollectionsFactory collectionsFactory = mock(org.neo4j.kernel.impl.util.collection.CollectionsFactory.class); CollectionsFactory collectionsFactory = mock(typeof(CollectionsFactory)); doReturn(set1, set2).when(collectionsFactory).newLongSet(); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final MutableLongDiffSetsImpl diffSets = new MutableLongDiffSetsImpl(collectionsFactory); MutableLongDiffSetsImpl diffSets = new MutableLongDiffSetsImpl(collectionsFactory); diffSets.Add(1L); diffSets.Remove(2L); assertSame(set1, diffSets.Added); assertSame(set2, diffSets.Removed); verify(collectionsFactory, times(2)).newLongSet(); verifyNoMoreInteractions(collectionsFactory); }
public MutableLongDiffSetsImpl(CollectionsFactory collectionsFactory) : this(_notInitialized, _notInitialized, collectionsFactory) { }
public MutableLongDiffSetsImpl(MutableLongSet added, MutableLongSet removed, CollectionsFactory collectionsFactory) { this._added = added; this._removed = removed; this._collectionsFactory = collectionsFactory; }
internal GraphStateImpl(CollectionsFactory collectionsFactory) : base(-1, collectionsFactory) { }