Skip to content

Commit 6208566

Browse files
committed
PR feedback: use Should better
1 parent b035b4d commit 6208566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Engine/InvokeScriptAnalyzer.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ Describe "Test Path" {
187187
$piped = ("$directory\TestScript.ps1" | Invoke-ScriptAnalyzer)
188188
$explicit = Invoke-ScriptAnalyzer -Path $directory\TestScript.ps1
189189

190-
$piped.Count -eq $explicit.Count | Should -BeTrue
190+
$piped.Count | Should Be $explicit.Count
191191
}
192192

193193
It "Can be piped from Get-ChildItem" {
194194
$piped = ( Get-ChildItem -Path $directory -Filter TestTestPath*.ps1 | Invoke-ScriptAnalyzer)
195195
$explicit = Invoke-ScriptAnalyzer -Path $directory\TestTestPath*.ps1
196-
$piped.Count -eq $explicit.Count | Should -BeTrue
196+
$piped.Count | Should Be $explicit.Count
197197
}
198198
}
199199
}

0 commit comments

Comments
 (0)