示例#1
0
        public void GetNextPointWithWrap3()
        {
            Create("foo", "bar");
            var next = SnapshotPointUtil.GetNextPointWithWrap(_textBuffer.CurrentSnapshot.GetLineFromLineNumber(1).End);

            Assert.AreEqual(_textBuffer.CurrentSnapshot.GetLineFromLineNumber(0).Start, next);
        }
示例#2
0
        public void GetNextPointWithWrap1()
        {
            Create("foo", "baz");
            var line = _textBuffer.CurrentSnapshot.GetLineFromLineNumber(0);
            var next = SnapshotPointUtil.GetNextPointWithWrap(line.Start);

            Assert.AreEqual(1, next.Position);
        }
示例#3
0
        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);
        }