Skip to content
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
merged 15 commits into from
Sep 8, 2013

Conversation

salfab
Copy link
Contributor

@salfab salfab commented Sep 8, 2013

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 :)

salfab and others added 15 commits February 21, 2013 00:12
…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.
@kzu kzu merged commit 3bffb14 into devlooped:master Sep 8, 2013
@kzu
Copy link
Member

kzu commented Sep 8, 2013

Shipped!

@sarvasana
Copy link

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants