public void Init() { textEditor = new FakeConsoleTextEditor(); dispatcher = new FakeControlDispatcher(); dispatcher.CheckAccessReturnValue = true; stream = new ScriptingConsoleOutputStream(textEditor, dispatcher); }
void CreateThreadSafeScriptingConsole() { threadSafeConsole = new TestableThreadSafeScriptingConsole(); dispatcher = threadSafeConsole.Dispatcher; dispatcher.CheckAccessReturnValue = true; nonThreadSafeScriptingConsole = threadSafeConsole.NonThreadSafeScriptingConsole; threadSafeConsoleEvents = threadSafeConsole.ConsoleEvents; }
TestableThreadSafeScriptingConsole(IScriptingConsole nonThreadSafeScriptingConsole, ThreadSafeScriptingConsoleEvents consoleEvents, IControlDispatcher dispatcher) : base(nonThreadSafeScriptingConsole, consoleEvents, dispatcher) { NonThreadSafeScriptingConsole = (FakeScriptingConsole)nonThreadSafeScriptingConsole; ConsoleEvents = (TestableThreadSafeScriptingConsoleEvents)consoleEvents; Dispatcher = (FakeControlDispatcher)dispatcher; ConsoleEvents.Dispatcher = Dispatcher; ConsoleEvents.NonThreadSafeScriptingConsole = NonThreadSafeScriptingConsole; }
public void Init() { dispatcher = new FakeControlDispatcher(); }