26 October 2006

Rhinos Mock object exception: ObjectNotMockFromThisRepositoryException

When calling mockRepository.Replay(obj), I got the following:

ObjectNotMockFromThisRepositoryException: The object is not a mock object that belong to this repository


Solution: make sure obj is one of your mock objects.

0 comments: