Esempio n. 1
0
        public void FindSymbol()
        {
            var cursor = new TextCursor("sfsfsdsf\ndfsfdXf".ToCharArray());

            cursor.FindSymbol('X');
            Assert.Equal(14, cursor.Position);
            Assert.Equal(2, cursor.LineNumber);
            Assert.Equal(5, cursor.LinePosition);
        }
Esempio n. 2
0
        public void FindSymbol()
        {
            var cursor = new TextCursor("sfsfsdsf\ndfsfdsf".ToCharArray());

            cursor.GoTo(2, 0);

            cursor.FindSymbol('s');

            Assert.Equal(11, cursor.Position);
        }