-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
support for reset of the call counts on all members. #55
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cherry picked from commit fb76e58)
…l setup yet, though. ( will come, eventually.)
- test has been moved because in its previous location, for some reason, the build was failing when compiling in Release.
- Somehow, the test I tried to write fails when compiling in Release for odd reasons pertaining to castle and interceptions (compiles fine in debug, though)
- test was using obsolete methods, leading to a failed build in Release mode, because of the unit test was failing.
- Rename ResetAllCalls method to a more suited "ResetCalls"
- Rename ResetAllCalls method to a more suited "ResetCalls" - Rename MockExtensions to ObsoleteMockExtensions << warning : this could introduce breaking changes - Rename MockResetExtensions to MockExtensions
…CallCounts Conflicts: Source.Silverlight/Moq.Silverlight.csproj Source/Moq.csproj
also : optimizes the calls to ActualCall, since now, ToList() is called to do a snapshot before enumeration only when an exception might occur (i.e. only when we enumerate the calls)
kzu
added a commit
that referenced
this pull request
Sep 8, 2013
support for reset of the call counts on all members.
Shipped! |
Wow, going to check it out! Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We are building a BDD framework, called Testeroids. in order to add a new feature, we needed to call some of the internal members of Moq.
This pull requests contains non-intrusive changes which would allow us the desired scenario :
that is : reset ALL the call counts (which will be compared with Times.***()).
In the feature, we might go further and reset only calls ton specific setups.
thank you :)