public void getHashCodeReturnsSameCodeForDifferentInstancesWithSameLexicalValuesAndDataTypes() { TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); TypedLiteral other = new TypedLiteral("whizz", "http://example.com/datatype"); Assert.IsTrue(instance.GetHashCode() == other.GetHashCode()); }
public void getHashCodeReturnsDifferentCodeForDifferentInstancesWithDifferentDataTypes() { TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); TypedLiteral other = new TypedLiteral("whizz", "http://example.com/other"); Assert.IsFalse(instance.GetHashCode() == other.GetHashCode()); }