Details
Description
In the AssertionError that is thrown for expectation failures the name of the mocked interface should be mentioned. Otherwise you might have a hard time to find the method if you have many mocks at the same time.
In the AssertionError that is thrown for expectation failures the name of the mocked interface should be mentioned. Otherwise you might have a hard time to find the method if you have many mocks at the same time.
Are we talking about the "Unexpected method call" message?
If yes, it's not possible to give it a name since more than one mock can be on the same mock control. However, looking at the line in the stack trace is usually enough (unless you are looping over mocks and then I would suggest to add dedicated message manually.