You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(where GoAbstractly is an abstract method) throws a System.NotImplementedException:
This is a DynamicProxy2 error: The interceptor attempted to 'Proceed' for method 'Void GoAbstractly()' which is abstract. When calling an abstract method there is no implementation to 'proceed' to and it is the responsibility of the interceptor to mimic the implementation (set return value, out arguments etc.)
It's possible that this is the intended result, but it's unlikely. If the user wants to ensure that GoAbstractly is not called, better to make the fake strict or explicitly configure GoAbstractly. In modern FakeItEasy (3.0.0+), creating a Fake Bar and invoking GoAbstractly would not throw, but would return a Dummy (if the method is non-void). The same applies even if the Fake were created with (options => options.CallBaseMethods()).
The text was updated successfully, but these errors were encountered:
Currently, this code
(where
GoAbstractly
is an abstract method) throws aSystem.NotImplementedException
:It's possible that this is the intended result, but it's unlikely. If the user wants to ensure that
GoAbstractly
is not called, better to make the fake strict or explicitly configureGoAbstractly
. In modern FakeItEasy (3.0.0+), creating a FakeBar
and invokingGoAbstractly
would not throw, but would return a Dummy (if the method is non-void). The same applies even if the Fake were created with(options => options.CallBaseMethods())
.The text was updated successfully, but these errors were encountered: