mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
* fixes summary block typo * Adds support for Port parameter for SSH PSSessions * Reverted back to master, modified based on PR feedback * Update exception message * remove unused line * Add existing constructor back in as to not break public contract * remove port check * pass nested inner exception straight to Should * dispose runspace after each test * Add SSHHostParameterSet attribute for Invoke-Command Port property * Update ParseSSHConnectionHashTable method to accept Port value as integer * Add helper method for validating port in range. Refactor port parameter constructor overload to use original constructor * rename method * Adds GetSSHConnectionStringParameter and GetSSHConnectionIntParameter methods for retrieving SSHConnection hashtable values * Adds method comments * Adds helper method comment * Change methods to add C# 7 patterns
Testing
The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./csharp. The sanity tests for the Full .NET build of PowerShell are in ./fullclr, and the third-party shebang test is in ./shebang.