public void TestToRight()
        {
            RemoveTextBlockToRight remove = new RemoveTextBlockToRight(new TextBlockFinderToRight('_'));

            Assert.AreEqual("_", remove.Remove("A_", 0));
            Assert.AreEqual("_B", remove.Remove("A_B", 0));
            Assert.AreEqual("A", remove.Remove("A_", 1));
            Assert.AreEqual("AA_", remove.Remove("AA_AA", 3));
            Assert.AreEqual("AA", remove.Remove("A_A", 1));
            Assert.AreEqual("A_", remove.Remove("A_A", 2));
        }
Ejemplo n.º 2
0
 public RemoveTextBlockToRightAction(params char[] separators)
 {
     this.remove = new RemoveTextBlockToRight(new TextBlockFinderToRight(separators));
 }