Several Pester tests for `Microsoft.PowerShell.Security` are incorrectly using `null` instead of `$null` * Use of `Should not be null` should have used `$null`. Change to `Should -Not -BeNullOrEmpty` and remediate example: https://github.com/PowerShell/PowerShell/blob/76526c6f1df08c0a55fbae79a7148a4a58805626/test/powershell/Modules/Microsoft.PowerShell.Security/CertificateProvider.Tests.ps1#L51 * Use of `Get-Item` should be `Get-ChildItem` in cert provider test (#6258). Correcting `$null` check will expose this bug. https://github.com/PowerShell/PowerShell/blob/76526c6f1df08c0a55fbae79a7148a4a58805626/test/powershell/Modules/Microsoft.PowerShell.Security/CertificateProvider.Tests.ps1#L50 Discovered while working on #6256
Several Pester tests for
Microsoft.PowerShell.Securityare incorrectly usingnullinstead of$nullUse of
Should not be nullshould have used$null. Change toShould -Not -BeNullOrEmptyand remediateexample:
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Security/CertificateProvider.Tests.ps1
Line 51 in 76526c6
Use of
Get-Itemshould beGet-ChildItemin cert provider test (Should Get-Item Cert:\ return an object #6258). Correcting$nullcheck will expose this bug.PowerShell/test/powershell/Modules/Microsoft.PowerShell.Security/CertificateProvider.Tests.ps1
Line 50 in 76526c6
Discovered while working on #6256