From a2c7b1340507a9d84798d2fc2e11c9ef57bf63c5 Mon Sep 17 00:00:00 2001 From: Zachary Folwick Date: Mon, 28 Dec 2015 15:29:59 -0800 Subject: [PATCH] Fix ConvertTo-Csv tests Assert that this cmdlet uses collections internally, which does not rely on order. --- src/pester-tests/ConvertTo-Csv.Tests.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pester-tests/ConvertTo-Csv.Tests.ps1 b/src/pester-tests/ConvertTo-Csv.Tests.ps1 index 5c53eceb4a..34486f62f3 100644 --- a/src/pester-tests/ConvertTo-Csv.Tests.ps1 +++ b/src/pester-tests/ConvertTo-Csv.Tests.ps1 @@ -21,12 +21,15 @@ Describe "ConvertTo-Csv" { It "Should return the column info in the second element of the output array" { $result = $testObject | ConvertTo-Csv - $result[1] | Should Be "`"FirstColumn`",`"SecondColumn`"" + + $result[1] | Should Match "`"FirstColumn`"" + $result[1] | Should Match "`"SecondColumn`"" } It "Should return the data as a comma-separated list in the third element of the output array" { $result = $testObject | ConvertTo-Csv - $result[2] | Should Be "`"Hello`",`"World`"" + $result[2] | Should Match "`"Hello`"" + $result[2] | Should Match "`"World`"" } }