Example #1
0
        public void GetPointsOnContainingLineBackwardsFrom3()
        {
            Create("foo", "bar", "baz");
            var points = SnapshotPointUtil.GetPointsOnContainingLineBackwardsFrom(_textBuffer.GetLine(1).End.Subtract(2)).Select(x => x.GetChar());

            CollectionAssert.AreEqual("ab", points);
        }
Example #2
0
        public void GetPointsOnContainingLineBackwardsFrom2()
        {
            Create("foo", "bar", "baz");
            var points = String.Concat(SnapshotPointUtil.GetPointsOnContainingLineBackwardsFrom(_textBuffer.GetLine(1).End).Select(x => x.GetChar()));

            Assert.Equal("rab", points);
        }