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
I suspect this was always thought of as a known, given fact, perhaps because Moq's early user base came from Rhino Mocks, which, I believe, had the same limitations. Most other open-source mocking libraries do, too (at least those based on DynamicProxy).
Feel free to add a mention of this limitation to e.g. the quickstart.
Moq doesn't support sealed classes/methods. You can only mock non-sealed types and virtual, non-sealed methods.
Originally posted by @stakx in #1255 (comment)
Absence of a clause in the documentation about the lack of support for sealed methods
The text was updated successfully, but these errors were encountered: