I use JustMock framework and have the following assertion:
Mock.Assert(() => activityListenerMock.PeriodPassed(
Arg.Matches<Period>(e => e.Length == expectedLength)));
It fails with cryptic message:
Occurrence expectation failed. Expected at least 1 call. Calls so far: 0
How can I get better message. I want to know with what value it was called.
Method is actually called but with wrong argument because when I change assertion to following it passes:
Mock.Assert(() => activityListenerMock.PeriodPassed(
Arg.IsAny<Period>()));