Beispiel #1
0
 public virtual void  TestTermBufferEquals()
 {
     Token t1a = new Token();
     char[] content1a = "hello".ToCharArray();
     t1a.SetTermBuffer(content1a, 0, 5);
     Token t1b = new Token();
     char[] content1b = "hello".ToCharArray();
     t1b.SetTermBuffer(content1b, 0, 5);
     Token t2 = new Token();
     char[] content2 = "hello2".ToCharArray();
     t2.SetTermBuffer(content2, 0, 6);
     Assert.IsTrue(t1a.Equals(t1b));
     Assert.IsFalse(t1a.Equals(t2));
     Assert.IsFalse(t2.Equals(t1b));
 }