private void AssertBefore(int[] values)
        {
            int res = Search(values, Before);

            Assert.AreEqual(0, res);
            Assert.IsTrue(_searcher.BeforeFirst());
        }
Beispiel #2
0
 public virtual void TestEmpty()
 {
     int[] values = new int[] {  };
     for (int i = 0; i < AllTargets.Length; i++)
     {
         Search(values, AllTargets[i]);
         Assert.AreEqual(0, _searcher.Cursor());
         Assert.IsFalse(_searcher.FoundMatch());
         Assert.IsFalse(_searcher.BeforeFirst());
         Assert.IsFalse(_searcher.AfterLast());
     }
 }