Steps to reproduce
test-path wsman:\foo -pathtype container
Expected behavior
The command returns $false.
Actual behavior
Exception is thrown: "Test-Path: Value cannot be null. (Parameter 'value')":

The $Error[1].Exception.InnerException.InnerException.StackTrace (since $Error[0] is the error for Invoke) shows:
at System.String.StartsWith(String value, StringComparison comparisonType)
at Microsoft.WSMan.Management.WSManConfigProvider.NormalizePath(String path, String host)
at Microsoft.WSMan.Management.WSManConfigProvider.IsItemContainer(String path)
at System.Management.Automation.SessionStateInternal.IsItemContainer(CmdletProvider providerInstance, String path, CmdletProviderContext context)
Environment data
Name Value
---- -----
PSVersion 7.0.0-preview.6
PSEdition Core
GitCommitId 7.0.0-preview.6
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, ...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
Expected behavior
The command returns
$false.Actual behavior
Exception is thrown: "Test-Path: Value cannot be null. (Parameter 'value')":
The
$Error[1].Exception.InnerException.InnerException.StackTrace(since$Error[0]is the error forInvoke) shows:Environment data