Beispiel #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCreateEqualRelTypes()
        public virtual void ShouldCreateEqualRelTypes()
        {
            RelationTypeSchemaDescriptor desc1 = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1);
            RelationTypeSchemaDescriptor desc2 = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1);

            SchemaTestUtil.AssertEquality(desc1, desc2);
        }
Beispiel #2
0
 public override bool Equals(object o)
 {
     if (o is RelationTypeSchemaDescriptor)
     {
         RelationTypeSchemaDescriptor that = ( RelationTypeSchemaDescriptor )o;
         return(_relTypeId == that.RelTypeId && Arrays.Equals(_propertyIds, that.PropertyIds));
     }
     return(false);
 }