Skip to content

So why are there not Assert.Less/LessEqual/Greater/GreaterEqual? #2143

Answered by bradwilson
Happypig375 asked this question in General
Discussion options

You must be logged in to vote

Here's the original reasoning why we didn't do this: it doesn't read well.

For example, compare this to:

Assert.True(x > 12, "x should be more than 12");

vs.

Assert.Greater(12, x);

This follows the standard pattern of (expected, actual) for parameters.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Happypig375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2143 on September 04, 2020 05:47.