> > I have some unit tests which expect several constrains on a method. If > one of the constraints fail, it is impossible to know which one is the > issue based on the message of the thrown exception. > > It would be good if this message could be updated to indicate either > the value tested along with the value expected or even better, > indicate which constraint failed?. >
Or you could write multiple similar tests and only assert on one constraint in each test. This is what I do for precisely the reason you cite. Iain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RhinoMocks?hl=en -~----------~----~----~----~------~----~------~--~---
