Files
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1
T

21 lines
495 B
PowerShell
Raw Normal View History

2016-07-25 14:01:41 -07:00
Describe "Get-Host DRT Unit Tests" -Tags "CI" {
2016-04-20 01:43:50 -07:00
It "Should works proper with get-host" {
$results = Get-Host
$results | Should Be $Host
$results.GetType().Name | Should Be InternalHost
}
}
2016-07-25 14:01:41 -07:00
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
}
}