Skip to content

Feature to reset setups and event handlers? #889

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

Closed
Rayffer opened this issue Aug 14, 2019 · 1 comment
Closed

Feature to reset setups and event handlers? #889

Rayffer opened this issue Aug 14, 2019 · 1 comment

Comments

@Rayffer
Copy link

Rayffer commented Aug 14, 2019

Currently, in Moq 4.12, there is a method called .Reset() which as it implies, resets all setups, eventhandlers, default return values and recorded invocations.

Can we develop a method to clear setups and / or event handlers like the .Invocations.Clear() does? I can develop it myself if needed

@Rayffer
Copy link
Author

Rayffer commented Aug 14, 2019

I close this issue as I've created a pull request, sorry for the inconvenience

@Rayffer Rayffer closed this as completed Aug 14, 2019
@devlooped devlooped locked and limited conversation to collaborators Sep 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant