//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRejectNodeNotInUse() public virtual void ShouldRejectNodeNotInUse() { // given NodeValueClientFilter filter = InitializeFilter(IndexQuery.exists(12)); // when filter.Next(); assertFalse(filter.AcceptNode(17, null)); filter.Close(); // then AssertEvents(Initialize(), Event.NEXT, Event.CLOSE); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldAcceptAllNodesOnNoFilters() public virtual void ShouldAcceptAllNodesOnNoFilters() { // given _node.withNode(17); NodeValueClientFilter filter = InitializeFilter(); // when filter.Next(); assertTrue(filter.AcceptNode(17, null)); filter.Close(); // then AssertEvents(Initialize(), Event.NEXT, new Event.Node(17, null), Event.CLOSE); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldNotAcceptNodeWithoutMatchingProperty() public virtual void ShouldNotAcceptNodeWithoutMatchingProperty() { // given _node.withNode(17, new long[0], genericMap(7, stringValue("wrong"))); NodeValueClientFilter filter = InitializeFilter(IndexQuery.exists(12)); // when filter.Next(); assertFalse(filter.AcceptNode(17, null)); filter.Close(); // then AssertEvents(Initialize(), Event.NEXT, Event.CLOSE); }