mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add test for CimCmdlets module
This commit is contained in:
@@ -110,6 +110,18 @@ try
|
||||
Remove-Module -ErrorAction SilentlyContinue PSWorkflow
|
||||
}
|
||||
}
|
||||
|
||||
It 'loads CimCmdlets' {
|
||||
try
|
||||
{
|
||||
Import-Module CimCmdlets -ErrorAction Stop
|
||||
Get-CimClass | Should Not Be $null
|
||||
}
|
||||
finally
|
||||
{
|
||||
Remove-Module -ErrorAction SilentlyContinue CimCmdlets
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user