Esempio n. 1
0
        public void FindNextOccurranceOfCharOnLine3()
        {
            Create("foo bar jaz");
            var next = TssUtil.FindNextOccurranceOfCharOnLine(_textBuffer.GetLine(0).Start, 'f', 1);

            Assert.IsFalse(next.IsSome());
        }
Esempio n. 2
0
        public void FindNextOccurranceOfCharOnLine4()
        {
            Create("foo bar jaz");
            var next = TssUtil.FindNextOccurranceOfCharOnLine(_textBuffer.GetLine(0).Start, 'a', 2);

            Assert.IsTrue(next.IsSome());
            Assert.AreEqual(9, next.Value.Position);
        }