mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
1. The individual test files (.ps1) in `/test/powershell/engine` are moved to the corresponding subfolders. 2. The test asset file `test/powershell/Common/TestTypeFile.ps1xml` is moved to `test/powershell/Common/engine/Api/assets/` so that it's next to the test that is using the file.
17 lines
563 B
PowerShell
17 lines
563 B
PowerShell
Describe 'Basic engine APIs' -Tags "CI" {
|
|
Context 'powershell::Create' {
|
|
It 'can create default instance' {
|
|
[powershell]::Create() | Should Not Be $null
|
|
}
|
|
|
|
It "can load the default snapin 'Microsoft.WSMan.Management'" -skip:(-not $IsWindows) {
|
|
$ps = [powershell]::Create()
|
|
$ps.AddScript("Get-Command -Name Test-WSMan") > $null
|
|
|
|
$result = $ps.Invoke()
|
|
$result.Count | Should Be 1
|
|
$result[0].PSSnapIn.Name | Should Be "Microsoft.WSMan.Management"
|
|
}
|
|
}
|
|
}
|