private JustEnoughVi.JustEnoughVi InitTest(string source) { var options = new TextEditorOptions { TabsToSpaces = true, }; var editor = Create(source, options); var plugin = new JustEnoughVi.JustEnoughVi(); plugin.Initialize(editor); return plugin; }
private JustEnoughVi.JustEnoughVi InitTest(string source) { var options = new TextEditorOptions { TabsToSpaces = true, }; var editor = Create(source, options); var plugin = new JustEnoughVi.JustEnoughVi(); plugin.Initialize(editor); return(plugin); }
public void Test(string source, string keys, string expected, Type expectedMode) { var options = new TextEditorOptions(); options.TabsToSpaces = true; var editor = Create(source, options); var plugin = new JustEnoughVi.JustEnoughVi(); plugin.Initialize(editor); ProcessKeys(keys, plugin); Check(plugin, expected, expectedMode); }