//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldInterpretSomeSpecifiedRelationships() public virtual void ShouldInterpretSomeSpecifiedRelationships() { // GIVEN Node node = CreateSomeData(); PathExpander expander = RelationshipExpanderBuilder.DescribeRelationships(map("relationships", map("type", MyRelTypes.TEST.name(), "direction", RelationshipDirection.Out.name()))); // WHEN ISet <Relationship> expanded; using (Transaction tx = Db.beginTx()) { expanded = asSet(expander.expand(singleNodePath(node), NO_STATE)); tx.Success(); } using (Transaction tx = Db.beginTx()) { // THEN assertEquals(asSet(node.GetRelationships(MyRelTypes.TEST)), expanded); tx.Success(); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldInterpretNoSpecifiedRelationshipsAsAll() public virtual void ShouldInterpretNoSpecifiedRelationshipsAsAll() { // GIVEN Node node = CreateSomeData(); PathExpander expander = RelationshipExpanderBuilder.DescribeRelationships(map()); // WHEN ISet <Relationship> expanded; using (Transaction tx = Db.beginTx()) { expanded = asSet(expander.expand(singleNodePath(node), NO_STATE)); tx.Success(); } using (Transaction tx = Db.beginTx()) { // THEN assertEquals(asSet(node.Relationships), expanded); tx.Success(); } }