예제 #1
0
        public void Init()
        {
            textEditorControl = new TextEditorControl();
            textEditor        = new TextEditor(textEditorControl);
            host = new DerivedRubyConsoleHost(textEditor);

            //ScriptRuntime runtime = IronRuby.Hosting.Ruby.CreateRuntime();
        }
예제 #2
0
        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));
        }
예제 #3
0
		public void Init()
		{
			textEditorControl = new TextEditor();
			textEditor = new ScriptingConsoleTextEditor(textEditorControl);
			host = new DerivedRubyConsoleHost(textEditor);
		}
예제 #4
0
		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));
		}
 public void Init()
 {
     textEditorControl = new TextEditor();
     textEditor        = new ScriptingConsoleTextEditor(textEditorControl);
     host = new DerivedRubyConsoleHost(textEditor);
 }