예제 #1
0
                public void Virtual(string line1)
                {
                    Create(line1, "");
                    var point1     = _textBuffer.GetVirtualPointInLine(0, 0);
                    var point2     = _textBuffer.GetVirtualPointInLine(0, 4);
                    var span       = new VirtualSnapshotSpan(point1, point2);
                    var visualSpan = VisualSpan.CreateForVirtualSelectionPoints(VisualKind.Character, point1, point2, _vimBuffer.LocalSettings.TabStop, true);

                    Assert.Equal(point1, visualSpan.AsCharacter().CharacterSpan.VirtualStart);
                    Assert.Equal(point2, visualSpan.AsCharacter().CharacterSpan.VirtualEnd);
                    Assert.Equal(span.Length, visualSpan.AsCharacter().CharacterSpan.VirtualLength);
                }