haf / expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
Apache License 2.0
663 stars 96 forks source link

Introduce Expect.wantSome and Expect.wantOk. #376

Closed teo-tsirpanis closed 4 years ago

teo-tsirpanis commented 4 years ago

They act like isSome/isOk, but also return the expected value. Also, testName is now a genericvalue (to make it feel more like a value), and throwsT requires an explicit type argument. The former is a breaking change (that is justified by the major version bump), and the latter is technically a breaking change as well, but more of an enforcement of how the function should have been used.