You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this is a feature already, but I can't see it anywhere.
Fairly often I end up trying to debug error messages like:
Expected: equivalent to < <Castle.Proxies.IWeekTimePeriodProxy>, <Castle.Proxies.IWeekTimePeriodProxy>, <Castle.Proxies.IWeekTimePeriodProxy> >
But was: < <Castle.Proxies.IWeekTimePeriodProxy>, <Castle.Proxies.IWeekTimePeriodProxy> >
This would be much easier to do if you could give your mocks a name, which could then be used in a ToString override, so you can easily track which one has ended up where (new Mock<X>("name") or new Mock<X>().WithName("name") would be fine).
I'd be happy to take a look at this, if it was likely to be accepted. Does it sound like something you'd be happy to add?
The text was updated successfully, but these errors were encountered:
Maybe this is a feature already, but I can't see it anywhere.
Fairly often I end up trying to debug error messages like:
This would be much easier to do if you could give your mocks a name, which could then be used in a ToString override, so you can easily track which one has ended up where (
new Mock<X>("name")
ornew Mock<X>().WithName("name")
would be fine).I'd be happy to take a look at this, if it was likely to be accepted. Does it sound like something you'd be happy to add?
The text was updated successfully, but these errors were encountered: