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