-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive mocks / mock property defaults #11
Comments
Moq's approach uses optional DefaultValue.Mock when creating mocks. See difference between DefaultValue.Mock and recursive mocks here: http://www.clariusconsulting.net/blogs/kzu/archive/2008/10/12/102921.aspx |
Current proposal is to auto-sub for all substitutable getters and methods by default. For now substitutable == interfaces. Can extend to cover classes w/ default ctors, and possibly all non-sealed classes (injecting defaults for ctors). Also should default to non-nulls where possible: arrays, object, string? |
Done for v1. Can look at recursive subbing for members that return classes for a future version. |
No description provided.
The text was updated successfully, but these errors were encountered: