I'm using RhinoMocks to test an Add() method on a viewModel. I've got one test called AddTest()) which tests everything inside the Add() method, including
1) an item was added the viewModel items list, 2) the item was validated 3) the itemsList pagedCollection view was moved to the correct page
the problem is that this requires about 5 AssertWasCalled methods and if one of them failed, the generic error message is displayed on the screen.
What I really want is to say AssertWasCalled(...., "Item should be valid at this point"), so I know what failed.
I know this functionality exists in nUNit. I'm surprised I can't display a custom error like this using rhinoMocks...
Or is the issue that I should be using 5 unit test methods to test this functionality? Even through I'm only testing the one "unit" (e.g. Add() method) of code??