public void FindNextOccurranceOfCharOnLine3() { Create("foo bar jaz"); var next = TssUtil.FindNextOccurranceOfCharOnLine(_textBuffer.GetLine(0).Start, 'f', 1); Assert.IsFalse(next.IsSome()); }
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); }