Example #1
0
        public void Partial2()
        {
            var         txt = "0".ToCharArray();
            GEDSplitter gs  = new GEDSplitter(10);

            Assert.AreEqual(1, gs.Split(txt, ' '));
            Assert.AreEqual('0', gs.Level(txt));
            Assert.AreEqual(null, gs.Tag(txt));
            Assert.AreEqual(null, gs.Remain(txt));
        }
Example #2
0
        public void Longer()
        {
            var         txt = "1 Page According to his death certificate, John McGinnis was bor".ToCharArray();
            GEDSplitter gs  = new GEDSplitter(20);

            Assert.AreEqual(11, gs.Split(txt, ' '));
            Assert.AreEqual('1', gs.Level(txt));
            Assert.AreEqual("Page", gs.Tag(txt));
            Assert.AreEqual("According to his death certificate, John McGinnis was bor", gs.Remain(txt));
        }