Esempio n. 1
0
        public void CreateVimBuffer_Simple()
        {
            var textView      = CreateTextView("");
            var vimTextBuffer = _vimBufferFactory.CreateVimTextBuffer(textView.TextBuffer, _vim);
            var buffer        = _vimBufferFactory.CreateVimBuffer(textView, vimTextBuffer);

            Assert.NotNull(buffer);
            Assert.Equal(ModeKind.Normal, buffer.ModeKind);
            Assert.Same(vimTextBuffer, buffer.VimTextBuffer);
        }
Esempio n. 2
0
 /// <summary>
 /// Create an IVimBuffer instance with the given VimBufferData value
 /// </summary>
 protected IVimBuffer CreateVimBuffer(IVimBufferData vimBufferData)
 {
     return(_vimBufferFactory.CreateVimBuffer(vimBufferData));
 }
Esempio n. 3
0
        internal static IVimBuffer CreateVimBuffer(this IVimBufferFactory vimBufferFactory, ITextView textView, IVimTextBuffer vimTextBuffer)
        {
            var vimBufferData = vimBufferFactory.CreateVimBufferData(vimTextBuffer, textView);

            return(vimBufferFactory.CreateVimBuffer(vimBufferData));
        }