mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
22 lines
495 B
PowerShell
22 lines
495 B
PowerShell
Describe "Get-Host DRT Unit Tests" -Tags "CI" {
|
|
It "Should works proper with get-host" {
|
|
$results = Get-Host
|
|
$results | Should Be $Host
|
|
$results.GetType().Name | Should Be InternalHost
|
|
}
|
|
}
|
|
|
|
Describe "Get-Host" -Tags "CI" {
|
|
It "Should return a type of InternalHost for Get-Host cmdlet" {
|
|
|
|
(Get-Host).GetType().Name | Should Be InternalHost
|
|
|
|
}
|
|
|
|
It "Should have $ host variable be equivalent to Get-Host object" {
|
|
|
|
Get-Host | Should Be $host
|
|
|
|
}
|
|
}
|