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