Skip to content

Commit 3ba1596

Browse files
committed
Updates to Test
1 parent 0e111e4 commit 3ba1596

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Tests/Engine/CustomizedRule.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ Describe "Test importing correct customized rules" {
9999
}
100100

101101
It "will show the custom rules when given recurse switch" {
102-
$customizedRulePath = Get-ScriptAnalyzerRule -RecurseCustomRulePath -CustomizedRulePath $directory\samplerule | Where-Object {$_.RuleName -eq $measure}
103-
$customizedRulePath.Count | Should be 3
102+
$customizedRulePath = Get-ScriptAnalyzerRule -RecurseCustomRulePath -CustomizedRulePath "$directory\samplerule", "$directory\samplerule\samplerule2" | Where-Object {$_.RuleName -eq $measure}
103+
$customizedRulePath.Count | Should be 5
104104
}
105105

106106
it "will show the custom rules when given glob with recurse switch" {

Tests/Engine/InvokeScriptAnalyzer.tests.ps1

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,7 @@ Describe "Test CustomizedRulePath" {
312312
It "When supplied with a collection of paths" {
313313
$customizedRulePath = Invoke-ScriptAnalyzer $directory\TestScript.ps1 -CustomRulePath ("$directory\CommunityAnalyzerRules", "$directory\SampleRule", "$directory\SampleRule\SampleRule2")
314314
$customizedRulePath.Count | Should Be 3
315-
}
316-
317-
It "When supplied with a collection of paths recursively" {
318-
$customizedRulePath = Invoke-ScriptAnalyzer $directory\TestScript.ps1 -CustomRulePath ("$directory\CommunityAnalyzerRules", "$directory\SampleRule", "$directory\SampleRule\SampleRule2") -RecurseCustomRulePath
319-
$customizedRulePath
320-
$customizedRulePath.Count | Should Be 6
321-
}
315+
}
322316

323317
}
324318

0 commit comments

Comments
 (0)