Skip to content

Cannot convert value "System.String" to type "System.Boolean" #2086

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

You must be logged in to vote

It's not Pester that's complaining about Expected, it is your function complaining about the input. Your function probably expects one or two bool-parameters but you give it a single string.

You're effectively running get-util-timeStamp "True True". "True True" can't be converted to bool

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fflaten
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