コード例 #1
0
 public void getHashCodeReturnsDifferentCodeForDifferentInstancesWithSameLexicalValuesButDifferentLanguages() {
  PlainLiteral instance = new PlainLiteral("whizz", "en");
  PlainLiteral other = new PlainLiteral("whizz", "fr");
  
  Assert.IsFalse( instance.GetHashCode() == other.GetHashCode() );
 }
コード例 #2
0
 public void getHashCodeReturnsSameCodeForDifferentInstancesWithSameLexicalValuesAndSameLanguage() {
  PlainLiteral instance = new PlainLiteral("whizz", "en");
  PlainLiteral other = new PlainLiteral("whizz", "en");
  
  Assert.IsTrue( instance.GetHashCode() == other.GetHashCode() );
 }
コード例 #3
0
 public void getHashCodeReturnsDifferentCodeForDifferentInstancesWithDifferentLexicalValues() {
  PlainLiteral instance = new PlainLiteral("whizz");
  PlainLiteral other = new PlainLiteral("bang");
  
  Assert.IsFalse( instance.GetHashCode() == other.GetHashCode() );
 }