mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-30 21:35:11 +08:00
Clean up use of 'Runspaceconfiguration' from comments and xunit test code (#5569)
This commit is contained in:
parent
3f9ff3f06d
commit
a12bd1768e
@ -63,7 +63,6 @@ namespace System.Management.Automation.Runspaces.Internal
|
||||
/// The explicit PSHost implementation.
|
||||
/// </param>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// RunspaceConfiguration is null.
|
||||
/// Host is null.
|
||||
/// </exception>
|
||||
/// <exception cref="ArgumentException">
|
||||
|
@ -37,9 +37,8 @@ namespace PSTests
|
||||
{
|
||||
CultureInfo currentCulture = CultureInfo.CurrentCulture;
|
||||
PSHost hostInterface = new DefaultHost(currentCulture,currentCulture);
|
||||
RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
|
||||
InitialSessionState iss = InitialSessionState.CreateDefault2();
|
||||
AutomationEngine engine = new AutomationEngine(hostInterface, runspaceConfiguration, iss);
|
||||
AutomationEngine engine = new AutomationEngine(hostInterface, iss);
|
||||
ExecutionContext executionContext = new ExecutionContext(engine, hostInterface, iss);
|
||||
return executionContext;
|
||||
}
|
||||
|
@ -20,9 +20,8 @@ namespace PSTests
|
||||
{
|
||||
CultureInfo currentCulture = CultureInfo.CurrentCulture;
|
||||
PSHost hostInterface = new DefaultHost(currentCulture,currentCulture);
|
||||
RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
|
||||
InitialSessionState iss = InitialSessionState.CreateDefault2();
|
||||
AutomationEngine engine = new AutomationEngine(hostInterface, runspaceConfiguration, iss);
|
||||
AutomationEngine engine = new AutomationEngine(hostInterface, iss);
|
||||
ExecutionContext executionContext = new ExecutionContext(engine, hostInterface, iss);
|
||||
SessionStateInternal sessionState = new SessionStateInternal(executionContext);
|
||||
Collection<PSDriveInfo> drives = sessionState.Drives(null);
|
||||
|
Loading…
Reference in New Issue
Block a user