public void neverEqualsInstanceOfSameClassWithDifferentLexicalValueAndSameDataType() { TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); TypedLiteral other = new TypedLiteral("bang", "http://example.com/datatype"); Assert.IsFalse(instance.Equals(other)); }
public void neverEqualsInstanceOfDifferentClass() { TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); Object obj = new Object(); Assert.IsFalse(instance.Equals(obj)); }
public void alwaysEqualsInstanceOfSameClassWithSameLexicalValueAndSameDataType() { TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); TypedLiteral other = new TypedLiteral("whizz", "http://example.com/datatype"); Assert.IsTrue(instance.Equals(other)); }
public void alwaysEqualsSelf() { TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); Assert.IsTrue(instance.Equals(instance)); }
public void neverEqualsNull() { TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype"); Assert.IsFalse(instance.Equals(null)); }