Add test for CimCmdlets module

This commit is contained in:
Sergei Vorobev committed 2016-06-28 16:19:15 -07:00
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
}
}
} }
} }