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

IInvocation and IInvocationList #633

Merged
merged 1 commit into from
Jun 15, 2018
Merged

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Jun 15, 2018

Rename IReadOnlyInvocation to IInvocation and introduce a new type IInvocationList instead of using IReadOnlyList<>. The rationale behind this is that we may want to publish methods in the future that are not read-only; naming interfaces as "read-only" would essentially block us from doing so.

Deprecate mock.ResetCalls() in favor of mock.Invocations.Clear(), which is more in line with Moq 5's API.

and introduce an interface `IInvocationList` instead of using `IRead-
OnlyList<>`. The rationale behind this is that we may want to publish
methods in the future that are not read-only; naming interfaces as
"read-only" would essentially block us from doing so.

Deprecate `mock.ResetCalls()` in favor of `mock.Invocations.Clear()`,
which is more in line with Moq 5's API.
@stakx stakx merged commit a624e0d into devlooped:master Jun 15, 2018
@stakx stakx deleted the invocations branch June 15, 2018 22:03
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

1 participant