-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
DefaultValue.Mock lazy initialization #1149
Labels
Comments
There should be no difference in performance between |
Closing due to inactivity. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I setup a deep mock which setup all interface methods and properties with default values
var mock = new Mock<Interface>{DefaultValue=DefaultValue.Mock};
then it takes more time than only setup a simple mock without all methods or properties
var mock = new Mock<Interface>();
Would it be possible to make deep mock setup faster in moq when it only initializes methods and properties when they are reallly called? A lazy initialization for deep mocks?
The text was updated successfully, but these errors were encountered: