Exemplo n.º 1
0
        public void GetNextPointOnLine2()
        {
            Create("foo", "bar");
            var point     = _textBuffer.GetLine(0).Start;
            var nextPoint = SnapshotPointUtil.GetNextPointOnLine(point, 400);

            Assert.AreEqual(point.Add(2), nextPoint);
        }
Exemplo n.º 2
0
 public void GetNextPointOnLine4()
 {
     Create("foo", "bar", "baz", "", "again");
     foreach (var point in SnapshotPointUtil.GetPoints(Path.Forward, _textBuffer.GetLine(0).Start))
     {
         var next = SnapshotPointUtil.GetNextPointOnLine(point, 0);
         Assert.AreEqual(point, next);
     }
 }
Exemplo n.º 3
0
 public void GetNextPointOnLine3()
 {
     Create("foo", "bar", "baz", "", "again");
     foreach (var point in SnapshotPointUtil.GetPoints(Path.Forward, _textBuffer.GetLine(0).Start))
     {
         SnapshotPointUtil.GetNextPointOnLine(point, 1);
         SnapshotPointUtil.GetNextPointOnLine(point, 100);
     }
 }