[Mono-list] AssertEquals(msg, exp, actual)

Bob Doan bdoan@sicompos.com
21 Feb 2002 09:15:58 -0500


Nick,

Ooops... I'll fix that when I get home.  I think I used ByteTest as an
example.. so that one may be transposed as well...

Thanks!

- Bob

On Thu, 2002-02-21 at 08:56, Nick Drochak wrote:
> 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.
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>