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

Clarify use of WithArgumentsForConstructor expression #1855

Merged
merged 1 commit into from
Aug 30, 2021

Conversation

blairconrad
Copy link
Member

Inspired by #1854, where @Bludator had noted that the original documentation was confusing.

@blairconrad blairconrad added this to the vNext milestone Aug 30, 2021
// The constructor seen here is never actually invoked. It is an expression and it's purpose
// is purely to communicate the constructor arguments which will be extracted from it
// Since the constructor call seen here is an expression, it is not invoked at this point
// in the code. (In fact no instance of `FooClass` will ever be constructed.) Instead, the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact no instance of FooClass will ever be constructed

I think this could be confusing too. The fake will be an instance of the proxy class, but it's still "an instance of FooClass", in the sense that fake is FooClass is true.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grumble grumble

working on it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amended

Copy link
Member

@thomaslevesque thomaslevesque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks @blairconrad

@thomaslevesque thomaslevesque merged commit 7018977 into FakeItEasy:master Aug 30, 2021
@blairconrad blairconrad deleted the constructor-docs branch August 30, 2021 17:05
@blairconrad
Copy link
Member Author

Oh, thank you, @thomaslevesque.

@afakebot
Copy link

afakebot commented Sep 1, 2021

This change has been released as part of FakeItEasy 7.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants