thebeebs | Test Problem
thebeebs
Zeroing the desk - Ignore the design
 
 

Test Problem

by thebeebs 8. January 2009 03:55

Assert.Fail failed. Assert.Equals should not be used for Assertions. Please use Assert.AreEqual & overloads instead.

I just got above error message… I used Assert.Equals(product.ProductId, productId); but actually the equals is not an assertion it’s just part of the object. I should have used Assert.AreEqual(product.ProductId, productId);

If you get this error just switch Equals for are Equal.

Tags:

Comments (1) -

Single Sarah
Single Sarah United States
3/23/2011 3:40:03 AM #

I really like your blog and there are some interesting points made. There are so many sites out there which are badly presented that it's a pleasant suprise to find a good one.

Comments are closed