You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hear what you say, it does read easier but for splatting purposes, the separate -Not argument would be easier. I can imagine TestCases or ForEach where a decision is made to either call the mocked function or not.
Also for inteliSense it would be easier to use one CmdLet name instead of having to type Should-Not.
I don't disagree on the function bloat and 90% help duplication etc. though we have to find a balance.
Personally I'm struggling a bit with testcases modifying the assertion behavior like Should .. -Not:$SomeTestParam. Maybe it's my personal style, but I'd always have two separate tests for working vs failing, mocked vs not etc. for easier troubleshooting and test naming.
@nohwnd What's your thoughts on the current design for Not/Negate?
Originally posted by @DarkLite1 in #2533 (comment)
Originally posted by @fflaten in #2533 (comment)
Originally posted by @DarkLite1 in #2533 (comment)
The text was updated successfully, but these errors were encountered: