Cannot convert value "System.String" to type "System.Boolean" #2086
-
Brand new to Pester.
In the errors I can see it is indeed returning the date in the specified format, however all are failing with the error: Which would make a bit of sense to me if it wasn't returning the expected value Can anyone please advise where I'm wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's not Pester that's complaining about You're effectively running |
Beta Was this translation helpful? Give feedback.
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