From 6c087155a7ff701215b2d65973435b6ee9ac62e0 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Wed, 13 Jul 2016 19:28:19 -0700 Subject: [PATCH] Update PowerShellGithubDev.Tests.ps1 --- test/fullclr/PowerShellGithubDev.Tests.ps1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/test/fullclr/PowerShellGithubDev.Tests.ps1 b/test/fullclr/PowerShellGithubDev.Tests.ps1 index 2868d2b44a..faab0a524e 100644 --- a/test/fullclr/PowerShellGithubDev.Tests.ps1 +++ b/test/fullclr/PowerShellGithubDev.Tests.ps1 @@ -46,7 +46,7 @@ try } # this Describe makes sure we binplace all the files, like psd1, psm1, ps1xml and load usable modules from them - Describe 'Modules for the packge' { + Describe 'Modules for the package' { Context '$env:DEVPATH Modules loading' { It 'loads Microsoft.PowerShell.LocalAccounts' { try @@ -116,6 +116,8 @@ try { Import-Module CimCmdlets -ErrorAction Stop Get-CimClass -ClassName CIM_Error | Should Not Be $null + [Microsoft.Management.Infrastructure.CimCmdlets.AsyncResultType].Assembly.Location | Should Be ( + Join-Path $env:DEVPATH Microsoft.Management.Infrastructure.CimCmdlets.dll) } finally { @@ -123,6 +125,20 @@ try } } + It 'loads Microsoft.WSMan.Management' { + try + { + Import-Module Microsoft.WSMan.Management -ErrorAction Stop + Test-WSMan | Should Not Be $null + [Microsoft.WSMan.Management.TestWSManCommand].Assembly.Location | Should Be ( + Join-Path $env:DEVPATH Microsoft.WSMan.Management.dll) + } + finally + { + Remove-Module -ErrorAction SilentlyContinue Microsoft.WSMan.Management + } + } + It 'loads Microsoft.PowerShell.Diagnostics' { try {