mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add test for CimCmdlets module
This commit is contained in:
1 parent
3072b466ac
commit
934cda2d7d
1 file changed
+12
@@ -110,6 +110,18 @@ try
|
|||||||
Remove-Module -ErrorAction SilentlyContinue PSWorkflow
|
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