Pester icon indicating copy to clipboard operation
Pester copied to clipboard

`Should-BeFals*`/`Should-BeTru*`: The commands are missing named parameter `Expected`

Open johlju opened this issue 1 month ago • 0 comments

Checklist

Summary of the feature request

Looking at the help for he commands

  • Should-BeFalse
  • Should-BeFalsy
  • Should-BeTrue
  • Should-BeTruthy

they are all missing the named parameter Expected which for example Should-Be and Should-BeExactly has.

Also, these commands has the positional parameter 1 set to Actual while position 2 is set to Because. That also differ from Should-Be and Should-BeExactly which has position 1 set to Expected and position 2 is set to Actual.

How should it work?

Is this meant to be this way, or is this something that should be resolved? I curious because it would simplify conversion from Pester 5 format to Pester 6 format if the commands behave the same. 🙂

johlju avatar Jun 29 '24 19:06 johlju