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.
46789501-ead1-4da9-9673-ca60b2bbbc91|0|.0
Tags: