removed unnecessary comments and matched style

This commit is contained in:
Zachary Folwick 2015-08-07 11:34:36 -07:00
parent a8a8e2091c
commit 22348bdb91

View file

@ -57,17 +57,7 @@ Describe "Test-Format-List" {
}
It "Should not show anything other than the requested props" {
<# the structure of the output of format-list, although iterable, is not a proper collection of
objects we can test
gps | fl | ForEach-Object{$_.ToString()} confirms that each item is a format object.
(Get-Process | Format-List | Out-String).split("\n") | ForEach-Object { $_} will list objects,
but not allow interaction with them.
#>
( Get-Process | Format-List | Out-String).Contains("CPU") | Should Be $true
( Get-Process | Format-List | Out-String) | Should Match "CPU"
$output = ( Get-Process | Format-List -Property Name | Out-String)