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

Merge duplicate FluentMockVisitor classes #698

Merged
merged 11 commits into from
Sep 22, 2018

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Sep 22, 2018

The Moq code base contains two very similar classes named FluentMockVisitor:

  1. one used by the Mock class,
  2. the other used by LINQ to Mocks' MockSetupsBuilder class.

Both of these have a very similar function, namely auto-mocking all method and property accesses in a multi-dot setup expression, and optionally adding the whole expression as a setup to the rightmost mock.

This refactoring merges both of these implementations into a single class.

@stakx stakx merged commit 22cce9c into devlooped:master Sep 22, 2018
@stakx stakx deleted the fluentmockvisitor branch September 22, 2018 13:37
@stakx stakx added this to the 4.10.1 milestone Oct 15, 2018
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