public void SetUpFixture() { TextEditor textEditorControl = new TextEditor(); textEditorControl.Text = ">>> __builtins__"; ScriptingConsoleTextEditor textEditor = new ScriptingConsoleTextEditor(textEditorControl); memberProvider = new MockMemberProvider(); memberProvider.SetMemberNames(new string[] { "a", "b", "c" }); expectedCompletionItems = CreateCompletionItems(memberProvider.GetMemberNames("__builtins__")); provider = new ScriptingConsoleCompletionDataProvider(memberProvider); completionItems = provider.GenerateCompletionData(textEditor); }
public void SetUpFixture() { using (TextEditorControl textEditorControl = new TextEditorControl()) { textEditorControl.Text = ">>> __builtins__"; TextEditor textEditor = new TextEditor(textEditorControl); memberProvider = new MockMemberProvider(); memberProvider.SetMemberNames(new string[] { "a", "b", "c" }); expectedCompletionItems = CreateCompletionItems(memberProvider.GetMemberNames("__builtins__")); provider = new PythonConsoleCompletionDataProvider(memberProvider); completionItems = provider.GenerateCompletionData(String.Empty, textEditorControl.ActiveTextAreaControl.TextArea, '.'); } }