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