From a12bd1768e652c99049e2be8f193891994d097e5 Mon Sep 17 00:00:00 2001 From: Jonathan Muller Date: Wed, 29 Nov 2017 18:38:04 +0100 Subject: [PATCH] Clean up use of 'Runspaceconfiguration' from comments and xunit test code (#5569) --- .../engine/hostifaces/RunspacePoolInternal.cs | 1 - test/csharp/test_FileSystemProvider.cs | 3 +-- test/csharp/test_SessionState.cs | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs index 35608783ae..4b1096c40d 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs @@ -63,7 +63,6 @@ namespace System.Management.Automation.Runspaces.Internal /// The explicit PSHost implementation. /// /// - /// RunspaceConfiguration is null. /// Host is null. /// /// diff --git a/test/csharp/test_FileSystemProvider.cs b/test/csharp/test_FileSystemProvider.cs index 5ad95a6daf..7863125169 100644 --- a/test/csharp/test_FileSystemProvider.cs +++ b/test/csharp/test_FileSystemProvider.cs @@ -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; } diff --git a/test/csharp/test_SessionState.cs b/test/csharp/test_SessionState.cs index 7558c1b678..eec2015377 100644 --- a/test/csharp/test_SessionState.cs +++ b/test/csharp/test_SessionState.cs @@ -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 drives = sessionState.Drives(null);