//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCountAllWithTypeDense() public virtual void ShouldCountAllWithTypeDense() { // Given StubGroupCursor groupCursor = new StubGroupCursor(Group(1).withOutCount(1).withInCount(1).withLoopCount(5), Group(2).withOutCount(1).withInCount(1).withLoopCount(3)); StubCursorFactory cursors = (new StubCursorFactory()).WithGroupCursors(groupCursor, groupCursor); // Then assertThat(countAll(new StubNodeCursor(true), cursors, 1), equalTo(7)); assertThat(countAll(new StubNodeCursor(true), cursors, 2), equalTo(5)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCountIncomingDense() public virtual void ShouldCountIncomingDense() { // Given StubGroupCursor groupCursor = new StubGroupCursor(Group().withOutCount(1).withInCount(1).withLoopCount(5), Group().withOutCount(1).withInCount(1).withLoopCount(3), Group().withOutCount(2).withInCount(1).withLoopCount(2), Group().withOutCount(3).withInCount(1).withLoopCount(1), Group().withOutCount(5).withInCount(1).withLoopCount(1)); StubCursorFactory cursors = (new StubCursorFactory()).WithGroupCursors(groupCursor); // When int count = countIncoming(new StubNodeCursor(true), cursors); // Then assertThat(count, equalTo(17)); }
private void InitializeInstanceFields() { _innerGroupCursor = new StubGroupCursor(Group(_store, typeA, _outA, _inA, _loopA), Group(_store, typeB, _outB, _inB, _loopB), Group(_store, typeC, _outC, _inC, _loopC)); _innerRelationshipCursor = new StubRelationshipCursor(_store); }