//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldListAllConstraintsForRelationshipType() public virtual void ShouldListAllConstraintsForRelationshipType() { // Given SchemaHelper.createRelPropertyExistenceConstraint(Db, RelType1, PropertyKey); SchemaHelper.createRelPropertyExistenceConstraint(Db, RelType2, PropertyKey); SchemaHelper.createRelPropertyExistenceConstraint(Db, RelType2, OtherPropertyKey); // When ISet <ConstraintDescriptor> constraints = asSet(StorageReader.constraintsGetForRelationshipType(RelationshipTypeId(RelType2))); // Then ISet <ConstraintDescriptor> expectedConstraints = Iterators.asSet(RelationshipPropertyExistenceDescriptor(RelType2, PropertyKey), RelationshipPropertyExistenceDescriptor(RelType2, OtherPropertyKey)); assertEquals(expectedConstraints, constraints); }