public void TestEquals() { PropertyId propertyId = new PropertyId("P42"); Assert.True(propertyId.Equals(new PropertyId("P42"))); Assert.False(propertyId.Equals(new PropertyId("P123"))); }
public PropertySomeValueSnak(PropertyId propertyId) { if (propertyId == null) { throw new ArgumentNullException("The property id must not be null"); } PropertyId = propertyId; }
public PropertyValueSnak(PropertyId propertyId, DataValue value) { if (propertyId == null || value == null) { throw new ArgumentNullException("The property id and value must not be null"); } PropertyId = propertyId; Value = value; }
public Property(PropertyId id = null, Fingerprint fingerprint = null, List<Statement> statements = null) { Id = id; Fingerprint = fingerprint == null ? new Fingerprint() : fingerprint; Statements = statements == null ? new List<Statement>() : statements; }
public void TestValidSerialization() { PropertyId PropertyId = new PropertyId("P42"); Assert.Equal("P42", PropertyId.Serialization); }