Exemplo n.º 1
0
 public void alwaysEqualsInstanceOfSameClassWithSameLexicalValueAndNoLanguage() {
  PlainLiteral instance = new PlainLiteral("whizz");
  PlainLiteral other = new PlainLiteral("whizz");
  
  Assert.IsTrue( instance.Equals(other) );
 }
Exemplo n.º 2
0
 public void neverEqualsInstanceOfSameClassButDifferentLexicalValueAndNoLanguage() {
  PlainLiteral instance = new PlainLiteral("whizz");
  PlainLiteral other = new PlainLiteral("bang");
  
  Assert.IsFalse( instance.Equals(other) );
 }
Exemplo n.º 3
0
 public void alwaysEqualsSelf() {
  PlainLiteral instance = new PlainLiteral("whizz");
  
  Assert.IsTrue( instance.Equals(instance) );
 }
Exemplo n.º 4
0
 public void neverEqualsInstanceOfDifferentClass() {
  PlainLiteral instance = new PlainLiteral("whizz");
  Object obj = new Object();
  
  Assert.IsFalse( instance.Equals(obj) );
 }
Exemplo n.º 5
0
 public void neverEqualsNull() {
  PlainLiteral instance = new PlainLiteral("whizz");
  
  Assert.IsFalse( instance.Equals(null) );
 }
Exemplo n.º 6
0
 public void neverEqualsInstanceOfSameClassWithSameLexicalValueAndDifferentLanguage() {
  PlainLiteral instance = new PlainLiteral("whizz", "en");
  PlainLiteral other = new PlainLiteral("whizz", "fr");
  
  Assert.IsFalse( instance.Equals(other) );
 }