コード例 #1
0
ファイル: SnapshotPointUtilTest.cs プロジェクト: sh54/VsVim
        public void TryGetNextPointOnLine2()
        {
            Create("foo", "bar");
            var point = _textBuffer.GetLine(0).End;
            var res   = SnapshotPointUtil.TryGetNextPointOnLine(point, 1);

            Assert.IsFalse(res.IsSome());
        }
コード例 #2
0
ファイル: SnapshotPointUtilTest.cs プロジェクト: sh54/VsVim
        public void TryGetNextPointOnLine3()
        {
            Create("foo", "bar");
            var point = _textBuffer.GetLine(0).Start.Add(1);
            var res   = SnapshotPointUtil.TryGetNextPointOnLine(point, 1);

            Assert.IsTrue(res.IsSome());
            Assert.AreEqual(point.Add(1), res.Value);
        }