Prerequisites
Steps to reproduce
- Build a debug version from the current master branch.
- Import Pester
PS> Import-Module -Name Pester -max 4.9.9
Expected behavior
Actual behavior
Debug assert:
defaultRefAssemblies was resized because of insufficient initial capacity! A capacity of 160 is required.
The default ref assemblies count is now 161, triggering the assert.
Error details
Either the expected number of default ref assemblies needs to be adjusted, or better yet just remove the assert.
Environment data
Name Value
---- -----
PSVersion 7.3.0-preview.3
PSEdition Core
GitCommitId 7.3.0-preview.3-120-ge7a4b7ddaa4634ea61e8acce8e2d491090aa965f
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
Prerequisites
Steps to reproduce
PS> Import-Module -Name Pester -max 4.9.9
Expected behavior
Module is imported.Actual behavior
Error details
Either the expected number of default ref assemblies needs to be adjusted, or better yet just remove the assert.Environment data
Visuals
PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/AddType.cs
Line 703 in e7a4b7d