-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure
Description
Several Pester tests for Microsoft.PowerShell.Security are incorrectly using null instead of $null
-
Use of
Should not be nullshould have used$null. Change toShould -Not -BeNullOrEmptyand remediate
example:PowerShell/test/powershell/Modules/Microsoft.PowerShell.Security/CertificateProvider.Tests.ps1
Line 51 in 76526c6
$result | should not be null -
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
$result = Get-Item -LiteralPath $path
Discovered while working on #6256
Metadata
Metadata
Assignees
Labels
Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure