@@ -21,7 +21,7 @@ Describe "Test available parameters" {
2121 $params = $sa.Parameters
2222 Context " Path parameter" {
2323 It " has a Path parameter" {
24- $params.ContainsKey (" Path" ) | Should - Be $true
24+ $params.ContainsKey (" Path" ) | Should - BeTrue
2525 }
2626
2727 It " accepts string" {
@@ -31,7 +31,7 @@ Describe "Test available parameters" {
3131
3232 Context " Path parameter" {
3333 It " has a ScriptDefinition parameter" {
34- $params.ContainsKey (" ScriptDefinition" ) | Should - Be $true
34+ $params.ContainsKey (" ScriptDefinition" ) | Should - BeTrue
3535 }
3636
3737 It " accepts string" {
@@ -41,21 +41,21 @@ Describe "Test available parameters" {
4141
4242 Context " CustomRulePath parameters" {
4343 It " has a CustomRulePath parameter" {
44- $params.ContainsKey (" CustomRulePath" ) | Should - Be $true
44+ $params.ContainsKey (" CustomRulePath" ) | Should - BeTrue
4545 }
4646
4747 It " accepts a string array" {
4848 $params [" CustomRulePath" ].ParameterType.FullName | Should - Be " System.String[]"
4949 }
5050
5151 It " has a CustomizedRulePath alias" {
52- $params.CustomRulePath.Aliases.Contains (" CustomizedRulePath" ) | Should - Be $true
52+ $params.CustomRulePath.Aliases.Contains (" CustomizedRulePath" ) | Should - BeTrue
5353 }
5454 }
5555
5656 Context " IncludeRule parameters" {
5757 It " has an IncludeRule parameter" {
58- $params.ContainsKey (" IncludeRule" ) | Should - Be $true
58+ $params.ContainsKey (" IncludeRule" ) | Should - BeTrue
5959 }
6060
6161 It " accepts string array" {
@@ -65,7 +65,7 @@ Describe "Test available parameters" {
6565
6666 Context " Severity parameters" {
6767 It " has a severity parameters" {
68- $params.ContainsKey (" Severity" ) | Should - Be $true
68+ $params.ContainsKey (" Severity" ) | Should - BeTrue
6969 }
7070
7171 It " accepts string array" {
@@ -77,7 +77,7 @@ Describe "Test available parameters" {
7777 {
7878 Context " SaveDscDependency parameter" {
7979 It " has the parameter" {
80- $params.ContainsKey (" SaveDscDependency" ) | Should - Be $true
80+ $params.ContainsKey (" SaveDscDependency" ) | Should - BeTrue
8181 }
8282
8383 It " is a switch parameter" {
@@ -100,7 +100,7 @@ Describe "Test available parameters" {
100100 }
101101 }
102102
103- $hasFile | Should - Be $true
103+ $hasFile | Should - BeTrue
104104 }
105105
106106 It " Has ScriptDefinition parameter set" {
@@ -112,7 +112,7 @@ Describe "Test available parameters" {
112112 }
113113 }
114114
115- $hasFile | Should - Be $true
115+ $hasFile | Should - BeTrue
116116 }
117117
118118 }
@@ -132,7 +132,7 @@ Describe "Test Path" {
132132 It " Has the same effect as without Path parameter" {
133133 $withPath = Invoke-ScriptAnalyzer $directory \TestScript.ps1
134134 $withoutPath = Invoke-ScriptAnalyzer - Path $directory \TestScript.ps1
135- $withPath.Count -eq $withoutPath.Count | Should - Be $true
135+ $withPath.Count -eq $withoutPath.Count | Should - BeTrue
136136 }
137137
138138 It " Does not run rules on script with more than 10 parser errors" {
@@ -199,7 +199,7 @@ Describe "Test Path" {
199199 $withPathWithDirectory = Invoke-ScriptAnalyzer - Recurse - Path $directory \RecursionDirectoryTest
200200
201201 It " Has the same count as without Path parameter" {
202- $withoutPathWithDirectory.Count -eq $withPathWithDirectory.Count | Should - Be $true
202+ $withoutPathWithDirectory.Count -eq $withPathWithDirectory.Count | Should - BeTrue
203203 }
204204
205205 It " Analyzes all the files" {
@@ -209,7 +209,7 @@ Describe "Test Path" {
209209 Write-Output $globalVarsViolation.Count
210210 Write-Output $clearHostViolation.Count
211211 Write-Output $writeHostViolation.Count
212- $globalVarsViolation.Count -eq 1 -and $writeHostViolation.Count -eq 1 | Should - Be $true
212+ $globalVarsViolation.Count -eq 1 -and $writeHostViolation.Count -eq 1 | Should - BeTrue
213213 }
214214 }
215215}
@@ -231,7 +231,7 @@ Describe "Test ExcludeRule" {
231231 It " does not exclude any rules" {
232232 $noExclude = Invoke-ScriptAnalyzer $directory \..\Rules\BadCmdlet.ps1
233233 $withExclude = Invoke-ScriptAnalyzer $directory \..\Rules\BadCmdlet.ps1 - ExcludeRule " This is a wrong rule"
234- $withExclude.Count -eq $noExclude.Count | Should - Be $true
234+ $withExclude.Count -eq $noExclude.Count | Should - BeTrue
235235 }
236236 }
237237
0 commit comments