public void getHashCodeReturnsDifferentCodeForDifferentInstancesWithSameLexicalValuesButDifferentLanguages() { PlainLiteral instance = new PlainLiteral("whizz", "en"); PlainLiteral other = new PlainLiteral("whizz", "fr"); Assert.IsFalse( instance.GetHashCode() == other.GetHashCode() ); }
public void getHashCodeReturnsSameCodeForDifferentInstancesWithSameLexicalValuesAndSameLanguage() { PlainLiteral instance = new PlainLiteral("whizz", "en"); PlainLiteral other = new PlainLiteral("whizz", "en"); Assert.IsTrue( instance.GetHashCode() == other.GetHashCode() ); }
public void getHashCodeReturnsDifferentCodeForDifferentInstancesWithDifferentLexicalValues() { PlainLiteral instance = new PlainLiteral("whizz"); PlainLiteral other = new PlainLiteral("bang"); Assert.IsFalse( instance.GetHashCode() == other.GetHashCode() ); }