From 934cda2d7d2d4f2e61ddd0371e3cc965030143e8 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Tue, 28 Jun 2016 16:19:15 -0700 Subject: [PATCH] Add test for CimCmdlets module --- test/fullclr/PowerShellGithubDev.Tests.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/fullclr/PowerShellGithubDev.Tests.ps1 b/test/fullclr/PowerShellGithubDev.Tests.ps1 index 3433f295cd..9e36017357 100644 --- a/test/fullclr/PowerShellGithubDev.Tests.ps1 +++ b/test/fullclr/PowerShellGithubDev.Tests.ps1 @@ -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 + } + } } }