1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
6
using ICSharpCode.PythonBinding;
7
using ICSharpCode.Scripting;
8
using ICSharpCode.Scripting.Tests.Utils;
9
using Microsoft.Scripting;
10
using Microsoft.Scripting.Hosting;
11
using Microsoft.Scripting.Hosting.Shell;
13
namespace PythonBinding.Tests.Console
15
public class DerivedPythonConsoleHost : PythonConsoleHost
17
ScriptingConsoleOutputStream outputStream;
19
public DerivedPythonConsoleHost(IScriptingConsoleTextEditor textEditor)
20
: base(textEditor, new FakeControlDispatcher())
24
public Type GetProvider()
29
public CommandLine CallCreateCommandLine()
31
return base.CreateCommandLine();
34
public IConsole CallCreateConsole(ScriptEngine engine, CommandLine commandLine, ConsoleOptions options)
36
return base.CreateConsole(engine, commandLine, options);
39
public OptionsParser CallCreateOptionsParser()
41
return base.CreateOptionsParser();
45
/// Gets the output stream class passed to SetOutput method.
47
public ScriptingConsoleOutputStream OutputStream {
48
get { return outputStream; }
51
protected override void SetOutput(ScriptingConsoleOutputStream stream)
53
outputStream = stream;