From 717608bb69727832f3968b201ce57a22afd219b4 Mon Sep 17 00:00:00 2001 From: TingLiu6 Date: Wed, 20 Apr 2016 01:43:50 -0700 Subject: [PATCH] Add Unit Test for Get-Host --- test/powershell/Get-Host.Tests.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/powershell/Get-Host.Tests.ps1 b/test/powershell/Get-Host.Tests.ps1 index 9c40c616b0..9d84332017 100644 --- a/test/powershell/Get-Host.Tests.ps1 +++ b/test/powershell/Get-Host.Tests.ps1 @@ -1,3 +1,11 @@ +Describe "Get-Host DRT Unit Tests" -Tags DRT{ + It "Should works proper with get-host" { + $results = Get-Host + $results | Should Be $Host + $results.GetType().Name | Should Be InternalHost + } +} + Describe "Get-Host" { It "Should return a type of InternalHost for Get-Host cmdlet" {