Skip to content

ConvertFrom-JSON: Cannot bind argument to parameter 'InputObject' because it is null #2193

Answered by fflaten
jinkang23 asked this question in Q&A
Discussion options

You must be logged in to vote

Remove the BeforeAll-block. There's no functions to import in run3.ps1, so no need to use it in the test-setup. Calling it in BeforeAll will actually execute it without any parameters which throws the error as exptected.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jinkang23
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants