Beispiel #1
0
        public void ExtendToFullLineIncludingLineBreak2()
        {
            Create("dog", "cat", "chicken", "pig");
            var span = new SnapshotSpan(_buffer.GetLine(1).Start, 0);

            span = SnapshotSpanUtil.ExtendToFullLineIncludingLineBreak(span);
            Assert.Equal(_buffer.GetLineRange(1).ExtentIncludingLineBreak, span);
        }
Beispiel #2
0
        public void ExtendToFullLineIncludingLineBreak1()
        {
            Create("dog", "cat", "chicken", "pig");
            var span = _buffer.GetSpan(0, 1);

            span = SnapshotSpanUtil.ExtendToFullLineIncludingLineBreak(span);
            Assert.AreEqual(_buffer.GetLineRange(0).ExtentIncludingLineBreak, span);
        }