Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce7eb83

Browse files
committed
Add PSScriptAnalyzer Test
1 parent0904654 commitce7eb83

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎tests/Get-MessageTrackingGUI.tests.ps1‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
Describe"PSScriptAnalyzer Test" {
2+
Context'PSScriptAnalyzer Standard Rules' {
3+
$analysis=Invoke-ScriptAnalyzer-Path'.\Get-MessageTrackingGUI.psm1'
4+
$scriptAnalyzerRules=Get-ScriptAnalyzerRule
5+
forEach ($rulein$scriptAnalyzerRules) {
6+
It"Should pass$rule" {
7+
If ($analysis.RuleName-contains$rule) {
8+
$analysis|Where-Object RuleName-EQ$rule-outvariable failures|Out-Default
9+
$failures.Count| Should Be0
10+
}
11+
}
12+
}
13+
}
14+
}
115
Describe"Create Icon Test" {
216
it"Create Icon success" {
317
Initialize-MTGIcon| Should Not Be$null

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp