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 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 ConsoleCreatedIsRubyConsole()
        {
            IConsole console = host.CallCreateConsole(null, null, null);

            Assert.IsInstanceOf(typeof(RubyConsole), console);
        }