1 write to Host
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
62Host = new InteractiveHost(typeof(CSharpReplServiceProvider), ".", millisecondsTimeout: -1, joinOutputWritingThreadsOnDisposal: true);
66 references to Host
InteractiveHost.UnitTests (66)
AbstractInteractiveHostTests.cs (9)
64Host.InteractiveHostProcessCreationFailed += (exception, exitCode) => 77await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, DefaultPlatform)); 105var service = await Host.TryGetServiceAsync(); 110Host.Dispose(); 124Host.SetOutputs(_synchronizedOutput, _synchronizedErrorOutput); 139var task = await Host.ExecuteAsync(code); 159await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName: null, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, InteractiveHostPlatform.Desktop64)); 165var remoteService = await Host.TryGetServiceAsync().ConfigureAwait(false); 214var remoteService = await Host.TryGetServiceAsync().ConfigureAwait(false);
InteractiveHostCoreInitTests.cs (8)
61await Host.ExecuteAsync(@"ReferencePaths"); 65await Host.ExecuteAsync(@"SourcePaths"); 70await Host.ExecuteAsync("SourcePaths.Add(@\"" + srcDir + "\");"); 72await Host.ExecuteAsync(@"SourcePaths"); 78await Host.ExecuteFileAsync("goo.csx"); 80await Host.ExecuteAsync(@"ReferencePaths"); 85await Host.AddReferenceAsync(Path.GetFileName(dll.Path)); 87await Host.ExecuteAsync(@"typeof(Metadata.ICSProp)");
InteractiveHostCoreTests.cs (1)
23var process = Host.TryGetProcess();
InteractiveHostDesktopInitTests.cs (8)
34await Host.ExecuteAsync(@"ReferencePaths"); 38await Host.ExecuteAsync(@"SourcePaths"); 43await Host.ExecuteAsync("SourcePaths.Add(@\"" + srcDir + "\");"); 45await Host.ExecuteAsync(@"SourcePaths"); 51await Host.ExecuteFileAsync("goo.csx"); 53await Host.ExecuteAsync(@"ReferencePaths"); 58await Host.AddReferenceAsync(Path.GetFileName(dll.Path)); 60await Host.ExecuteAsync(@"typeof(Metadata.ICSProp)");
InteractiveHostDesktopTests.cs (40)
67var process = Host.TryGetProcess(); 113Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 115await Host.ExecuteAsync(MethodWithInfiniteLoop + "\r\nfoo()"); 119await Host.ExecuteAsync(MethodWithInfiniteLoop + "\r\nfoo()"); 131Host.OutputReceived += (_, __) => 136var executeTask = Host.ExecuteAsync(@" 169var process = Host.TryGetProcess(); 185Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 187await Host.ExecuteFileAsync(file); 202var task = await Host.ExecuteFileAsync(file); 213var result = await Host.ExecuteFileAsync("non existing file"); 237var task = await Host.ExecuteFileAsync(file); 259await Host.ExecuteFileAsync(typeof(Process).Assembly.Location); 272await Host.ExecuteFileAsync(file.Path); 287Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 291await Host.AddReferenceAsync("nonexistingassembly" + Guid.NewGuid()); 706await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 744await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 769await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 820await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 847await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 998await Host.ExecuteAsync(@"System.IntPtr.Size"); 1002await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName: null, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, InteractiveHostPlatform.Desktop32)); 1006await Host.ExecuteAsync(@"System.IntPtr.Size"); 1010var result = await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName: null, CultureInfo.InvariantCulture, CultureInfo.InvariantCulture, InteractiveHostPlatform.Core)); 1014await Host.ExecuteAsync(@"System.IntPtr.Size"); 1027await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, culture, uiCulture, Host.OptionsOpt!.Platform)); 1029await Host.ExecuteAsync(@"(1000.23).ToString(""C"")");