Fix ConvertTo-Csv tests

Assert that this cmdlet uses collections internally, which does not rely
on order.
This commit is contained in:
Zachary Folwick
2016-01-06 12:57:14 -08:00
committed by Andrew Schwartzmeyer
parent be61a6449b
commit a2c7b13405
+5 -2
View File
@@ -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`""
}
}