Skip to content

Commit 78a2585

Browse files
committed
Improve message when there are failures in use compatible commands
1 parent 0487eee commit 78a2585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Rules/UseCompatibleCommands.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ Describe 'UseCompatibleCommands' {
400400
}
401401

402402
$diagnostics = Invoke-ScriptAnalyzer -Path "$PSScriptRoot/../../" -IncludeRule $script:RuleName -Settings $settings
403-
$diagnostics.Count | Should -Be 0 -Because ($diagnostics.RuleName -join ', ')
403+
$diagnostics.Count | Should -Be 0 -Because ($diagnostics.Message -join ', ')
404404
}
405405
}
406406

0 commit comments

Comments
 (0)