PowerShell/PowerShell-Tests

Parameter binding tests

mattmcnabb opened this issue · 0 comments

in the file Scripting/LanguageandParser/ParameterBinding.Tests.ps1 you haven't put your assertions inside It blocks. This results in tests that don't actually fail, but you also don't have any useful output.

Invoke-ScriptFunctionTakesObject | Should Be 42
Invoke-ScriptFunctionTakesUInt64 | Should Be 42
Invoke-CSharpCmdletTakesObject | Should Be "passed in null"
Invoke-CSharpCmdletTakesUInt64 | Should Be 0
Invoke-ScriptFunctionTakesObject -Address $null | Should Be 42
Invoke-ScriptFunctionTakesUInt64 -Address $null | Should Be 42
Invoke-CSharpCmdletTakesObject -Address $null | Should Be 42
Invoke-CSharpCmdletTakesUInt64 -Address $null | Should Be 42