@@ -14,10 +14,10 @@ $functionTestScriptBlock = {
1414 for ($i = 0 ; $i -le $iterations - 1 ; $i ++ ) {
1515 " Iteration: $ ( $i + 1 ) " | Write-Host
1616 & $script :cmd @cmdArgs
17- if ($global :LASTEXITCODE -ne $expectExitCode ) {
18- throw " Expected exit code $expectExitCode but got exit code $global :LASTEXITCODE "
17+ if ($global :LASTEXITCODE -ne $expectedExitCode ) {
18+ throw " Expected exit code $expectedExitCode but got exit code $global :LASTEXITCODE "
1919 }
20- " Expected exit code: $expectExitCode , Exit code: $global :LASTEXITCODE " | Write-Host - ForegroundColor Yellow
20+ " Expected exit code: $expectedExitCode , Exit code: $global :LASTEXITCODE " | Write-Host - ForegroundColor Yellow
2121 }
2222 }catch {
2323 $_ | Write-Error
@@ -38,7 +38,7 @@ $cmdArgs = @{
3838 Force = $true
3939}
4040$iterations = 2
41- $expectExitCode = 0
41+ $expectedExitCode = 0
4242& $functionTestScriptBlock
4343
4444" `n [sourcemod] Compile plugin via wrapper, bad plugin" | Write-Host
@@ -47,7 +47,7 @@ $cmdArgs = @{
4747 Force = $true
4848}
4949$iterations = 2
50- $expectExitCode = 1
50+ $expectedExitCode = 1
5151& $functionTestScriptBlock
5252
5353" `n [sourcemod] Compile plugin via compiler" | Write-Host
@@ -57,7 +57,7 @@ $cmdArgs = @{
5757 SkipWrapper = $true
5858}
5959$iterations = 2
60- $expectExitCode = 0
60+ $expectedExitCode = 0
6161& $functionTestScriptBlock
6262
6363" `n [sourcemod] Compile plugin via compiler, bad plugin" | Write-Host
@@ -67,7 +67,7 @@ $cmdArgs = @{
6767 SkipWrapper = $true
6868}
6969$iterations = 2
70- $expectExitCode = 1
70+ $expectedExitCode = 1
7171& $functionTestScriptBlock
7272
7373# ############
@@ -83,7 +83,7 @@ if ($env:OS -eq 'Windows_NT') {
8383 File = " $PSScriptRoot \..\..\mod\amxmodx\addons\amxmodx\scripting\plugin1.sma"
8484 Force = $true
8585 }
86- $expectExitCode = 0
86+ $expectedExitCode = 0
8787 $iterations = 2
8888 & $functionTestScriptBlock
8989
@@ -92,7 +92,7 @@ if ($env:OS -eq 'Windows_NT') {
9292 File = " $PSScriptRoot \..\..\mod\amxmodx\addons\amxmodx\scripting\plugin1_bad.sma"
9393 Force = $true
9494 }
95- $expectExitCode = 1
95+ $expectedExitCode = 1
9696 $iterations = 2
9797 & $functionTestScriptBlock
9898}else { " Skipping: Test only applicable to Windows." | Write-Host }
@@ -103,7 +103,7 @@ $cmdArgs = @{
103103 Force = $true
104104 SkipWrapper = $true
105105}
106- $expectExitCode = 0
106+ $expectedExitCode = 0
107107$iterations = 2
108108& $functionTestScriptBlock
109109
@@ -113,7 +113,7 @@ $cmdArgs = @{
113113 Force = $true
114114 SkipWrapper = $true
115115}
116- $expectExitCode = 1
116+ $expectedExitCode = 1
117117$iterations = 2
118118& $functionTestScriptBlock
119119
0 commit comments