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

Allow empty constructors even when protected (such as with an abstract class) #105

Merged
merged 3 commits into from Jan 15, 2021

Conversation

adamhewitt627
Copy link
Collaborator

@adamhewitt627 adamhewitt627 commented Jan 15, 2021

Prior to #86, we just passed the type off to Moq which allowed for empty private/protected constructors. It fails to mock parameters, which is what that work aimed to address. However, it came at the cost of easily allowing the empty case as is common in abstract classes.

Resolves #104, Resolves #103. I'd also like to get #101 merged first since it will rev the major version and this can go along for the ride before shipping it as stable.

@adamhewitt627 adamhewitt627 merged commit ba075de into master Jan 15, 2021
@adamhewitt627 adamhewitt627 deleted the dev/allow-all-empty-ctors branch January 15, 2021 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants