1 write to Host
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
65Host = new InteractiveHost(typeof(CSharpReplServiceProvider), ".", millisecondsTimeout: -1, joinOutputWritingThreadsOnDisposal: true);
66 references to Host
InteractiveHost.UnitTests (66)
AbstractInteractiveHostTests.cs (9)
67Host.InteractiveHostProcessCreationFailed += (exception, exitCode) => 80await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, DefaultPlatform)); 108var service = await Host.TryGetServiceAsync(); 113Host.Dispose(); 127Host.SetOutputs(_synchronizedOutput, _synchronizedErrorOutput); 142var task = await Host.ExecuteAsync(code); 162await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName: null, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, InteractiveHostPlatform.Desktop64)); 168var remoteService = await Host.TryGetServiceAsync().ConfigureAwait(false); 217var remoteService = await Host.TryGetServiceAsync().ConfigureAwait(false);
InteractiveHostCoreInitTests.cs (8)
62await Host.ExecuteAsync(@"ReferencePaths"); 66await Host.ExecuteAsync(@"SourcePaths"); 71await Host.ExecuteAsync("SourcePaths.Add(@\"" + srcDir + "\");"); 73await Host.ExecuteAsync(@"SourcePaths"); 79await Host.ExecuteFileAsync("goo.csx"); 81await Host.ExecuteAsync(@"ReferencePaths"); 86await Host.AddReferenceAsync(Path.GetFileName(dll.Path)); 88await Host.ExecuteAsync(@"typeof(Metadata.ICSProp)");
InteractiveHostCoreTests.cs (1)
24var process = Host.TryGetProcess();
InteractiveHostDesktopInitTests.cs (8)
35await Host.ExecuteAsync(@"ReferencePaths"); 39await Host.ExecuteAsync(@"SourcePaths"); 44await Host.ExecuteAsync("SourcePaths.Add(@\"" + srcDir + "\");"); 46await Host.ExecuteAsync(@"SourcePaths"); 52await Host.ExecuteFileAsync("goo.csx"); 54await Host.ExecuteAsync(@"ReferencePaths"); 59await Host.AddReferenceAsync(Path.GetFileName(dll.Path)); 61await Host.ExecuteAsync(@"typeof(Metadata.ICSProp)");
InteractiveHostDesktopTests.cs (40)
68var process = Host.TryGetProcess(); 114Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 116await Host.ExecuteAsync(MethodWithInfiniteLoop + "\r\nfoo()"); 120await Host.ExecuteAsync(MethodWithInfiniteLoop + "\r\nfoo()"); 132Host.OutputReceived += (_, __) => 137var executeTask = Host.ExecuteAsync(@" 170var process = Host.TryGetProcess(); 186Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 188await Host.ExecuteFileAsync(file); 203var task = await Host.ExecuteFileAsync(file); 214var result = await Host.ExecuteFileAsync("non existing file"); 238var task = await Host.ExecuteFileAsync(file); 260await Host.ExecuteFileAsync(typeof(Process).Assembly.Location); 273await Host.ExecuteFileAsync(file.Path); 288Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 292await Host.AddReferenceAsync("nonexistingassembly" + Guid.NewGuid()); 707await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 745await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 770await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 821await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 848await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 999await Host.ExecuteAsync(@"System.IntPtr.Size"); 1003await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName: null, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, InteractiveHostPlatform.Desktop32)); 1007await Host.ExecuteAsync(@"System.IntPtr.Size"); 1011var result = await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName: null, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, InteractiveHostPlatform.Core)); 1015await Host.ExecuteAsync(@"System.IntPtr.Size"); 1028await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, culture, uiCulture, Host.OptionsOpt!.Platform)); 1030await Host.ExecuteAsync(@"(1000.23).ToString(""C"")");