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

            Assert.Equal("ab", points);
        }
        public void GetPointsOnContainingLineBackwardsFrom1()
        {
            Create("foo", "bar", "baz");
            var points = String.Concat(SnapshotPointUtil.GetPointsOnLineBackward(_textBuffer.GetLine(0).End).Select(x => x.GetChar()));

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