コード例 #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));
		}
コード例 #5
0
 public void Init()
 {
     textEditorControl = new TextEditor();
     textEditor        = new ScriptingConsoleTextEditor(textEditorControl);
     host = new DerivedRubyConsoleHost(textEditor);
 }