mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Update PowerShellGithubDev.Tests.ps1
This commit is contained in:
1 parent
bc6990f46b
commit
6c087155a7
1 file changed
+17
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user