Пример #1
0
        public void GetLastLine4()
        {
            Create("a", "");
            var span    = new SnapshotSpan(_buffer.CurrentSnapshot, 0, _buffer.CurrentSnapshot.Length);
            var endLine = SnapshotSpanUtil.GetLastLine(span);

            Assert.Equal(0, endLine.LineNumber);
        }
Пример #2
0
        public void GetLastLine3()
        {
            Create("", "b", "c");
            var span    = _buffer.GetLine(0).ExtentIncludingLineBreak;
            var endLine = SnapshotSpanUtil.GetLastLine(span);

            Assert.Equal(0, endLine.LineNumber);
        }