-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
Allow setting up "overrides" for object
members when mocking interfaces
#248
Comments
…, `object.Equals(object obj)` and `object.GetHashCode()`.
An unintended side effect of this feature: #273 :( |
Does this fix also include GetType() method calls? |
|
I am using .NET Core and was not sure if there is a way to call the method mentioned by you without calling GetType. Ref: http://stackoverflow.com/questions/41646964/asp-net-core-equivalent-of-type-isassignablefrom However, I do get your point about it being not virtual. |
Consider the following mock of some interface:
There is no interceptor created for the
Equals()
method. But since I know every object implementingIMyThing
will also be anobject
wouldn't it be nice if I was able to do this?The text was updated successfully, but these errors were encountered: