1 write to Host
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
64Host = new InteractiveHost(typeof(CSharpReplServiceProvider), ".", millisecondsTimeout: -1, joinOutputWritingThreadsOnDisposal: true);
62 references to Host
InteractiveHost.UnitTests (62)
AbstractInteractiveHostTests.cs (9)
66Host.InteractiveHostProcessCreationFailed += (exception, exitCode) => 79await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName, 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, 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)
33var process = Host.TryGetProcess();
InteractiveHostDesktopInitTests.cs (8)
36await Host.ExecuteAsync(@"ReferencePaths"); 40await Host.ExecuteAsync(@"SourcePaths"); 45await Host.ExecuteAsync("SourcePaths.Add(@\"" + srcDir + "\");"); 47await Host.ExecuteAsync(@"SourcePaths"); 53await Host.ExecuteFileAsync("goo.csx"); 55await Host.ExecuteAsync(@"ReferencePaths"); 60await Host.AddReferenceAsync(Path.GetFileName(dll.Path)); 62await Host.ExecuteAsync(@"typeof(Metadata.ICSProp)");
InteractiveHostDesktopTests.cs (36)
69var process = Host.TryGetProcess(); 115Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 117await Host.ExecuteAsync(MethodWithInfiniteLoop + "\r\nfoo()"); 121await Host.ExecuteAsync(MethodWithInfiniteLoop + "\r\nfoo()"); 133Host.OutputReceived += (_, __) => 138var executeTask = Host.ExecuteAsync(@" 171var process = Host.TryGetProcess(); 187Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 189await Host.ExecuteFileAsync(file); 204var task = await Host.ExecuteFileAsync(file); 215var result = await Host.ExecuteFileAsync("non existing file"); 239var task = await Host.ExecuteFileAsync(file); 261await Host.ExecuteFileAsync(typeof(Process).Assembly.Location); 274await Host.ExecuteFileAsync(file.Path); 289Host.ErrorOutputReceived += (_, __) => mayTerminate.Set(); 293await Host.AddReferenceAsync("nonexistingassembly" + Guid.NewGuid()); 708await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, culture: CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 746await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, culture: CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 771await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 822await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 849await Host.ResetAsync(new InteractiveHostOptions(Host.OptionsOpt!.HostPath, rspFile.Path, CultureInfo.InvariantCulture, Host.OptionsOpt!.Platform)); 1000await Host.ExecuteAsync(@"System.IntPtr.Size"); 1004await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName: null, CultureInfo.InvariantCulture, InteractiveHostPlatform.Desktop32)); 1008await Host.ExecuteAsync(@"System.IntPtr.Size"); 1012var result = await Host.ResetAsync(InteractiveHostOptions.CreateFromDirectory(TestUtils.HostRootPath, initializationFileName: null, CultureInfo.InvariantCulture, InteractiveHostPlatform.Core)); 1016await Host.ExecuteAsync(@"System.IntPtr.Size");