PowerShell/test
Paul Higinbotham 743a964392 Fix Export-ModuleMember bug for scriptblocks having no context (#8363)
Export-ModuleMember cmdlet throws an exception if module functions are exported across language boundaries (Windows only).  But a scriptblock LanguageMode property can be null if the scriptblock is created without a PowerShell context, and this can happen through the PowerShell API called from C#.  In this case Export-ModuleMember throws erroneously when no language mode restrictions are in play.

Fix is to check if LanguageMode is null before comparing context and scriptblock language modes.
2018-11-30 11:45:33 -08:00
..
common/markdown Remove build and doc references to Git submodules (#8177) 2018-11-05 10:39:29 -08:00
csharp Bump xunit from 2.4.0 to 2.4.1 (#8140) 2018-10-29 13:28:02 -07:00
docker/networktest Update copyright and license headers (#6134) 2018-02-13 09:23:53 -08:00
hosting Merged PR 5822: Update version for dependencies 2018-11-14 01:56:28 +00:00
packaging/windows Simplify the paths the MSI uses (#6442) 2018-04-02 10:47:29 -07:00
powershell Fix Export-ModuleMember bug for scriptblocks having no context (#8363) 2018-11-30 11:45:33 -08:00
shebang Reorganize tests 2016-01-14 17:00:06 -08:00
tools Consolidation of all Windows PowerShell work ported to PSCore6 (#8257) 2018-11-13 16:16:29 -08:00
README.md Add test/README.md 2016-03-30 23:30:26 -07:00
Test.Common.props Update to .NET Core 2.1.5 with SDK 2.1.403 (#7936) 2018-10-03 13:31:56 -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.