コード例 #1
0
ファイル: SnapshotPointUtilTest.cs プロジェクト: sh54/VsVim
        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
ファイル: SnapshotPointUtilTest.cs プロジェクト: sh54/VsVim
        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);
        }