//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); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCreateEqualLabels() public virtual void ShouldCreateEqualLabels() { LabelSchemaDescriptor desc1 = SchemaDescriptorFactory.ForLabel(LABEL_ID, 1); LabelSchemaDescriptor desc2 = SchemaDescriptorFactory.ForLabel(LABEL_ID, 1); SchemaTestUtil.AssertEquality(desc1, desc2); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCreateRelTypeDescriptors() public virtual void ShouldCreateRelTypeDescriptors() { RelationTypeSchemaDescriptor relTypeDesc; relTypeDesc = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1); assertThat(relTypeDesc.RelTypeId, equalTo(REL_TYPE_ID)); assertArray(relTypeDesc.PropertyIds, 1); relTypeDesc = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1, 2, 3); assertThat(relTypeDesc.RelTypeId, equalTo(REL_TYPE_ID)); SchemaTestUtil.AssertArray(relTypeDesc.PropertyIds, 1, 2, 3); relTypeDesc = SchemaDescriptorFactory.ForRelType(REL_TYPE_ID); assertThat(relTypeDesc.RelTypeId, equalTo(REL_TYPE_ID)); SchemaTestUtil.AssertArray(relTypeDesc.PropertyIds); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCreateLabelDescriptors() public virtual void ShouldCreateLabelDescriptors() { LabelSchemaDescriptor labelDesc; labelDesc = SchemaDescriptorFactory.ForLabel(LABEL_ID, 1); assertThat(labelDesc.LabelId, equalTo(LABEL_ID)); assertArray(labelDesc.PropertyIds, 1); labelDesc = SchemaDescriptorFactory.ForLabel(LABEL_ID, 1, 2, 3); assertThat(labelDesc.LabelId, equalTo(LABEL_ID)); SchemaTestUtil.AssertArray(labelDesc.PropertyIds, 1, 2, 3); labelDesc = SchemaDescriptorFactory.ForLabel(LABEL_ID); assertThat(labelDesc.LabelId, equalTo(LABEL_ID)); SchemaTestUtil.AssertArray(labelDesc.PropertyIds); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldGiveNiceUserDescriptions() public virtual void ShouldGiveNiceUserDescriptions() { assertThat(SchemaDescriptorFactory.ForLabel(1, 2).userDescription(SchemaTestUtil.simpleNameLookup), equalTo(":Label1(property2)")); assertThat(SchemaDescriptorFactory.ForRelType(1, 3).userDescription(SchemaTestUtil.simpleNameLookup), equalTo("-[:RelType1(property3)]-")); }
private SchemaDescriptor DisguisedRelType() { return(SchemaDescriptorFactory.ForRelType(REL_TYPE_ID, 1)); }
private SchemaDescriptor DisguisedLabel() { return(SchemaDescriptorFactory.ForLabel(LABEL_ID, 1)); }