//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 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 DisguisedLabel() { return(SchemaDescriptorFactory.ForLabel(LABEL_ID, 1)); }