mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Fix CR Issues
This commit is contained in:
1 parent
2080920a64
commit
732b842f8b
1 file changed
+4
@@ -3,6 +3,7 @@ Describe "ConvertTo-Csv DRT Unit Tests" -Tags DRT{
|
||||
|
||||
It "Test convertto-csv with psobject pipelined" {
|
||||
$returnObject = $inputObject | ConvertTo-Csv
|
||||
$returnObject.Count | Should Be 3
|
||||
$returnObject[0] | Should Be "#TYPE System.Management.Automation.PSCustomObject"
|
||||
$returnObject[1] | Should Be "`"First`",`"Second`""
|
||||
$returnObject[2] | Should Be "`"1`",`"2`""
|
||||
@@ -10,6 +11,7 @@ Describe "ConvertTo-Csv DRT Unit Tests" -Tags DRT{
|
||||
|
||||
It "Test convertto-csv with NoTypeInformation and psobject pipelined" {
|
||||
$returnObject = $inputObject | ConvertTo-Csv -NoTypeInformation
|
||||
$returnObject.Count | Should Be 2
|
||||
$returnObject[0] | Should Be "`"First`",`"Second`""
|
||||
$returnObject[1] | Should Be "`"1`",`"2`""
|
||||
}
|
||||
@@ -17,6 +19,7 @@ Describe "ConvertTo-Csv DRT Unit Tests" -Tags DRT{
|
||||
It "Test convertto-csv with a useculture flag" {
|
||||
#The default value is ','
|
||||
$returnObject = $inputObject | ConvertTo-Csv -UseCulture
|
||||
$returnObject.Count | Should Be 3
|
||||
$returnObject[0] | Should Be "#TYPE System.Management.Automation.PSCustomObject"
|
||||
$returnObject[1] | Should Be "`"First`",`"Second`""
|
||||
$returnObject[2] | Should Be "`"1`",`"2`""
|
||||
@@ -25,6 +28,7 @@ Describe "ConvertTo-Csv DRT Unit Tests" -Tags DRT{
|
||||
It "Test convertto-csv with Delimiter" {
|
||||
#The default value is ','
|
||||
$returnObject = $inputObject | ConvertTo-Csv -Delimiter ";"
|
||||
$returnObject.Count | Should Be 3
|
||||
$returnObject[0] | Should Be "#TYPE System.Management.Automation.PSCustomObject"
|
||||
$returnObject[1] | Should Be "`"First`";`"Second`""
|
||||
$returnObject[2] | Should Be "`"1`";`"2`""
|
||||
|
||||
Reference in new issue
Block a user