Open
Description
When writing tests, I like to require explicitly mocking all properties of a mock object that end up getting used by my code. Is there a way for a mock to immediately raise if any property is accessed that has not been mocked via a call to when
?
The other thing that irks me about returning null
by default is that the mock object may not actually be abiding by it's type, leading to potentially unexpected behavior when writing tests using mocks.
Metadata
Metadata
Assignees
Labels
No labels