public void Init() { textEditorControl = new TextEditor(); textEditor = new ScriptingConsoleTextEditor(textEditorControl); host = new DerivedPythonConsoleHost(textEditor); ScriptRuntime runtime = IronPython.Hosting.Python.CreateRuntime(); }
public void Init() { textEditorControl = new TextEditor(); textEditor = new ScriptingConsoleTextEditor(textEditorControl); host = new DerivedPythonConsoleHost(textEditor); ScriptRuntime runtime = IronPython.Hosting.Python.CreateRuntime(); }
public void HostDisposesPythonConsole() { DerivedPythonConsoleHost host = new DerivedPythonConsoleHost(new MockTextEditor()); PythonConsole console = host.CallCreateConsole(null, null, null) as PythonConsole; host.Dispose(); Assert.IsNull(console.ReadLine(0)); }