Clean up use of 'Runspaceconfiguration' from comments and xunit test code (#5569)
This commit is contained in:
parent
f67844e4cd
commit
ad17640d48
|
@ -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 a new issue