[Mono-list] AssertEquals(msg, exp, actual)
Nick Drochak
ndrochak@gol.com
Thu, 21 Feb 2002 22:56:59 +0900
Bob,
Nice job on the Boolean test!
I noticed you used AssertEquals(). Note that the parameters are
AssertEquals(message, expected_value, actual_value). It seems that
you've transposed the expected and actual value parameters. Nunit prints
a nice message when this assert fails like "Expected <X> but got <Y>"
and if you transpose the expected/actual values, it can make it really
confusing.
I noticed some other people making this same mistake, so I though I'd
post to the list and remind everyone.
Regards,
Nick D.