Why do so many assertEquals()
or similar function take the expected value as first parameter and the actual one as second ?
This seems counter-intuitive to me,
Because the authors had a 50% chance of matching your intuition.
Because of the other overload
assertWhatever(explanation, expected, actual)
And the explanation, which is part of what you know, goes with the expected, which is what you know, as opposed to the actual, which you don't know at the time you write the code.