removed unnecessary comments and matched style
This commit is contained in:
parent
a8a8e2091c
commit
22348bdb91
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue