public void Init() { textEditorControl = new TextEditorControl(); textEditor = new TextEditor(textEditorControl); host = new DerivedRubyConsoleHost(textEditor); //ScriptRuntime runtime = IronRuby.Hosting.Ruby.CreateRuntime(); }
public void HostDisposesRubyConsole() { DerivedRubyConsoleHost host = new DerivedRubyConsoleHost(new MockTextEditor()); RubyConsole console = host.CallCreateConsole(null, null, null) as RubyConsole; host.Dispose(); Assert.IsNull(console.ReadLine(0)); }
public void Init() { textEditorControl = new TextEditor(); textEditor = new ScriptingConsoleTextEditor(textEditorControl); host = new DerivedRubyConsoleHost(textEditor); }
public void HostDisposesRubyConsole() { DerivedRubyConsoleHost host = new DerivedRubyConsoleHost(new FakeConsoleTextEditor()); RubyConsole console = host.CallCreateConsole(null, null, null) as RubyConsole; host.Dispose(); Assert.IsNull(console.ReadLine(0)); }