Clean up use of 'Runspaceconfiguration' from comments and xunit test code (#5569)

This commit is contained in:
Jonathan Muller 2017-11-29 18:38:04 +01:00 committed by Travis Plunk
parent 3f9ff3f06d
commit a12bd1768e
3 changed files with 2 additions and 5 deletions

View File

@ -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">

View File

@ -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;
}

View File

@ -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);