From 22348bdb91729706e0752f6e526ff7083bef21eb Mon Sep 17 00:00:00 2001 From: Zachary Folwick Date: Fri, 7 Aug 2015 11:34:36 -0700 Subject: [PATCH] removed unnecessary comments and matched style --- src/pester-tests/Test-Format-List.Tests.ps1 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/pester-tests/Test-Format-List.Tests.ps1 b/src/pester-tests/Test-Format-List.Tests.ps1 index 4b9deeaf11..6be3cf037b 100644 --- a/src/pester-tests/Test-Format-List.Tests.ps1 +++ b/src/pester-tests/Test-Format-List.Tests.ps1 @@ -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)