Ejemplo n.º 1
0
 public void testRevFind()
 {
     StringTheory theory = new StringTheory("Mares eat oats");
     Assert.True(theory.RevFind("eat") == 6, "Couldn't find the test string");
     theory = new StringTheory("Mares eat oats Mares eat oats");
     Assert.True(theory.RevFind("eat") == 0x15, "1) Couldn't find the test string");
     Assert.True(theory.RevFind("eat", 20) == 6, "2) Couldn't find the test string");
     Assert.True(theory.RevFind("eat", theory.End()) == 0x15, "3) Couldn't find the test string");
 }