Example #1
0
        public void HostDisposesPythonConsole()
        {
            DerivedPythonConsoleHost host    = new DerivedPythonConsoleHost(new MockTextEditor());
            PythonConsole            console = host.CallCreateConsole(null, null, null) as PythonConsole;

            host.Dispose();

            Assert.IsNull(console.ReadLine(0));
        }
Example #2
0
        public void ConsoleCreatedIsPythonConsole()
        {
            IConsole console = host.CallCreateConsole(null, null, null);

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