We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Several Pester tests for Microsoft.PowerShell.Security are incorrectly using null instead of $null
Microsoft.PowerShell.Security
null
$null
Use of Should not be null should have used $null. Change to Should -Not -BeNullOrEmpty and remediate example:
Should not be null
Should -Not -BeNullOrEmpty
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Security/CertificateProvider.Tests.ps1
Line 51 in 76526c6
Use of Get-Item should be Get-ChildItem in cert provider test (Should Get-Item Cert:\ return an object #6258). Correcting $null check will expose this bug.
Get-Item
Get-ChildItem
Line 50 in 76526c6
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