PowerShell/test
Staffan Gustafsson a9c6292903 Enable conversions from PSMethod to Delegate (#5287)
Underpinnings to make calling of Extension methods /Linq easier from PowerShell.
Enables the following that previously had to be done via reflection.

class M {
  [int] Twice([int] $value) { return 2 * $value }

  [int] DoubleSum([int[]] $values) {
     return [Linq.Enumerable]::Sum($values, [M]::Twice)
  }
}

Each PSMethod is created as with a unique type for the combinations of method signatures in the MethodInfos it represents.

PSMethod<T> where T is a MethodGroup<>, potentially recursive in the last template argument.

This way, we can determine by just looking at the type of a PSMethod if there exists a conversion from the PSMethod to a delegate.
2017-12-01 18:40:35 -08:00
..
common/markdown Add documentation about how to create libpsl and psrp.windows packages (#5278) 2017-11-01 15:55:46 -07:00
csharp Fix xunnit test for PS (#4780) 2017-11-30 14:44:41 -08:00
docker/networktest Rename powershell.exe to pwsh.exe (#5101) 2017-10-17 17:25:11 -07:00
powershell Enable conversions from PSMethod to Delegate (#5287) 2017-12-01 18:40:35 -08:00
PSReadLine replace the word hang with something more appropriate (#5358) 2017-11-08 13:47:12 -08:00
shebang
tools Add SslProtocol Support to WebCmdlets (#5329) 2017-11-13 10:45:46 -08:00
README.md
Test.Common.props Update powershell to use 2.0.4-servicing dotnet core runtime (#5295) 2017-11-02 14:12:19 -07:00

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.