Make sure that the width of the header is at least the size of the label (or propertyname) (#6487)

This commit is contained in:
James Truher [MSFT]
2018-03-28 13:34:29 -07:00
committed by Aditya Patwardhan
parent 9a061457f4
commit a6479f8181
2 changed files with 7 additions and 1 deletions
@@ -512,7 +512,7 @@ namespace System.Management.Automation.Runspaces
.AddHeader(width: 6)
.AddHeader(width: 6)
.AddHeader(width: 6)
.AddHeader(width: 9)
.AddHeader(width: 15)
.AddHeader(width: 11)
.StartRowDefinition()
.AddPropertyColumn("Major")
@@ -245,4 +245,10 @@ Describe "SemanticVersion api tests" -Tags 'CI' {
$des.ToString() | Should -Be $expectedResult
}
}
Context "Formatting" {
It "Should not throw when default format-table is used" {
{ $PSVersionTable.PSVersion | Format-Table | Out-String } | Should -Not -Throw
}
}
}