Initialize() protected méthode

protected Initialize ( ) : void
Résultat void
 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;
 }
Exemple #2
0
        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);
        }
        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);
        }