public void RemoveBuffer2() { var view = CreateTextView("foo bar"); var vimBuffer = Vim.CreateVimBuffer(view); Assert.True(Vim.RemoveVimBuffer(view)); Assert.False(Vim.TryGetVimBuffer(view, out vimBuffer)); }
public void RemoveBuffer1() { var view = new Mock <IWpfTextView>(MockBehavior.Strict); Assert.False(Vim.RemoveVimBuffer(view.Object)); }