Add test for CimCmdlets module

This commit is contained in:
Sergei Vorobev
2016-06-28 16:19:15 -07:00
parent 3072b466ac
commit 934cda2d7d
@@ -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
}
}
}
}