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

9 lines
355 B
PowerShell

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Get-Host DRT Unit Tests" -Tags "CI" {
It "Should works proper with get-host" {
$results = Get-Host
$results | Should -Be $Host
$results.PSObject.TypeNames[0] | Should -BeExactly "System.Management.Automation.Internal.Host.InternalHost"
}
}