public void Init()
		{
			textEditorControl = new TextEditor();
			textEditor = new ScriptingConsoleTextEditor(textEditorControl);
			host = new DerivedPythonConsoleHost(textEditor);
			
			ScriptRuntime runtime = IronPython.Hosting.Python.CreateRuntime();
		}
Beispiel #2
0
        public void Init()
        {
            textEditorControl = new TextEditor();
            textEditor        = new ScriptingConsoleTextEditor(textEditorControl);
            host = new DerivedPythonConsoleHost(textEditor);

            ScriptRuntime runtime = IronPython.Hosting.Python.CreateRuntime();
        }
Beispiel #3
0
        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));
        }