From 187013985ad6d379097f6190ef8fc953b58c0d52 Mon Sep 17 00:00:00 2001 From: TingLiu6 Date: Wed, 4 May 2016 22:51:34 -0700 Subject: [PATCH] Fix the CR issue for Get-Unique --- test/powershell/Get-Unique.Tests.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/powershell/Get-Unique.Tests.ps1 b/test/powershell/Get-Unique.Tests.ps1 index 7182d366c8..2b5688e906 100644 --- a/test/powershell/Get-Unique.Tests.ps1 +++ b/test/powershell/Get-Unique.Tests.ps1 @@ -78,12 +78,12 @@ Describe "Get-Unique" { $collection = "a", "b", "b", "d" $expectedOutput = "a", "b", "d" - $actual = Get-Unique -InputObject $collection + $actual = $collection | Get-Unique - $actual.Length | Should Be $collection.Length + $actual.Length | Should Be $expectedOutput.Length - $actual[0] | Should Be $collection[0] - $actual[1] | Should Be $collection[1] - $actual[2] | Should Be $collection[2] + $actual[0] | Should Be $expectedOutput[0] + $actual[1] | Should Be $expectedOutput[1] + $actual[2] | Should Be $expectedOutput[2] } }