Thanks to visit codestin.com
Credit goes to github.com

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
8 changes: 4 additions & 4 deletions test/powershell/engine/Basic/DefaultCommands.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Verify approved aliases list" -Tags "CI" {
Describe "Verify aliases and cmdlets" -Tags "CI" {
BeforeAll {
function ConvertTo-Hashtable {
[CmdletBinding()]
Expand Down Expand Up @@ -612,9 +612,9 @@ Describe "Verify approved aliases list" -Tags "CI" {
}

It "All approved Cmdlets present (no new Cmdlets added, no Cmdlets removed)" {
$expectedCmdletList = $commandList.Where({$_.Present -eq "True" -and $_.CommandType -eq "Cmdlet"}).Name | Sort-Object
$observedCmdletList = $currentCmdletList.Name | Sort-Object
$observedCmdletList | Should -Be $expectedCmdletList
$observedCmdletNames = $currentCmdletList.ForEach({"{0}" -f $_.Name}) | Sort-Object
$expectedCmdletNames = $commandHashTableList.ForEach({"{0}" -f $_.Name}) | Sort-Object
$observedCmdletNames | Should -Be $expectedCmdletNames
}

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