public void GetNextPointWithWrap3() { Create("foo", "bar"); var next = SnapshotPointUtil.GetNextPointWithWrap(_textBuffer.CurrentSnapshot.GetLineFromLineNumber(1).End); Assert.AreEqual(_textBuffer.CurrentSnapshot.GetLineFromLineNumber(0).Start, next); }
public void GetNextPointWithWrap1() { Create("foo", "baz"); var line = _textBuffer.CurrentSnapshot.GetLineFromLineNumber(0); var next = SnapshotPointUtil.GetNextPointWithWrap(line.Start); Assert.AreEqual(1, next.Position); }
public void GetNextPointWithWrap2() { Create("foo", "bar"); var line = _textBuffer.CurrentSnapshot.GetLineFromLineNumber(0); var next = SnapshotPointUtil.GetNextPointWithWrap(line.End); line = _textBuffer.CurrentSnapshot.GetLineFromLineNumber(1); Assert.Equal(line.Start, next); }