Пример #1
0
        public async Task Returns_error_when_jupyter_paths_could_not_be_obtained()
        {
            var console            = new TestConsole();
            var jupyterCommandLine = new JupyterCommandLine(console, new InMemoryJupyterKernelSpec(false));
            await jupyterCommandLine.InvokeAsync();

            console.Error.ToString().Should().Contain(".NET kernel installation failed");
        }
Пример #2
0
        public async Task Prints_to_console_when_kernel_installation_succeded()
        {
            var console            = new TestConsole();
            var jupyterCommandLine = new JupyterCommandLine(console, new InMemoryJupyterKernelSpec(true));
            await jupyterCommandLine.InvokeAsync();

            console.Out.ToString().Should().MatchEquivalentOf($"*[InstallKernelSpec] Installed kernelspec .net in *.net *");
            console.Out.ToString().Should().Contain(".NET kernel installation succeeded");
        }