Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions test/powershell/engine/Basic/DefaultCommands.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,12 @@ Describe "Verify aliases and cmdlets" -Tags "CI" {
}

It "All approved Cmdlets present (no new Cmdlets added, no Cmdlets removed)" {
$observedCmdletNames = $currentCmdletList.ForEach({"{0}" -f $_.Name}) | Sort-Object
$expectedCmdletNames = $commandHashTableList.ForEach({"{0}" -f $_.Name}) | Sort-Object
$observedCmdletNames | Should -Be $expectedCmdletNames
$observedCmdletNames = $currentCmdletList.ForEach({"{0}" -f $_.Name})
$expectedCmdletNames = $commandHashTableList.ForEach({"{0}" -f $_.Name})
$extraCmds = $observedCmdletNames.Where({$expectedCmdletNames -notcontains $_})
$missedCmds = $expectedCmdletNames.Where({$observedCmdletNames -notcontains $_})
$extraCmds | Should -HaveCount 0 -Because "Extra cmdlets $($extraCmds -join ',')"
$missedCmds | Should -HaveCount 0 -Because "Missed cmdlets $($missedCmds -join ',')"
}

It "'<Name>' Cmdlet should have the correct ConfirmImpact '<ConfirmImpact>'" -TestCases $commandHashtableList {
Expand Down