Skip to content

Commit 05cf516

Browse files
committed
Add a test for the new behavior
1 parent 8fa6612 commit 05cf516

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/Engine/GetScriptAnalyzerRule.tests.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,11 @@ Describe "TestWildCard" {
177177
$rules.Count | Should -Be 4
178178
}
179179
}
180+
181+
Describe "TestImplementingType" {
182+
It "retrieves rule which have an implementing type" {
183+
$rule = Get-ScriptAnalyzerRule PSPlaceCloseBrace
184+
$type = $rule.ImplementingType
185+
$type.BaseType.Name | Should -Be "ConfigurableRule"
186+
}
187+
}

0 commit comments

Comments
 (0)