예제 #1
0
        public void RemoveBuffer2()
        {
            var view      = EditorUtil.CreateView("foo bar");
            var vimBuffer = _vim.CreateBuffer(view);

            Assert.IsTrue(_vim.RemoveBuffer(view));
            Assert.IsTrue(_vim.GetBuffer(view).IsNone());
        }
예제 #2
0
        public void Create_SimpleTextView()
        {
            var textView = EditorUtil.CreateView();
            var ret      = _vim.CreateBuffer(textView);

            Assert.IsNotNull(ret);
            Assert.AreSame(textView, ret.TextView);
        }