Exemplo n.º 1
0
 public void getHashCodeReturnsDifferentCodeForDifferentInstancesWithSameLexicalValuesButDifferentLanguages() {
  PlainLiteral instance = new PlainLiteral("whizz", "en");
  PlainLiteral other = new PlainLiteral("whizz", "fr");
  
  Assert.IsFalse( instance.GetHashCode() == other.GetHashCode() );
 }
Exemplo n.º 2
0
 public void getHashCodeReturnsSameCodeForDifferentInstancesWithSameLexicalValuesAndSameLanguage() {
  PlainLiteral instance = new PlainLiteral("whizz", "en");
  PlainLiteral other = new PlainLiteral("whizz", "en");
  
  Assert.IsTrue( instance.GetHashCode() == other.GetHashCode() );
 }
Exemplo n.º 3
0
 public void getHashCodeReturnsDifferentCodeForDifferentInstancesWithDifferentLexicalValues() {
  PlainLiteral instance = new PlainLiteral("whizz");
  PlainLiteral other = new PlainLiteral("bang");
  
  Assert.IsFalse( instance.GetHashCode() == other.GetHashCode() );
 }