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

Auto-mocking extension code was removed #30

Open
Hamled opened this issue Apr 7, 2022 · 0 comments
Open

Auto-mocking extension code was removed #30

Hamled opened this issue Apr 7, 2022 · 0 comments

Comments

@Hamled
Copy link

Hamled commented Apr 7, 2022

In commit 2c29dc2 the zip files used for auto-mocking in unit and integration tests were removed.

While those zip files did contain copies of the mocking libraries (Moq and NSubstitute), and those libraries can be obtained from other sources such as nuget (the docs were later updated to reflect that). However, the zip files also contained some Zenject-specific code to provide the extension methods that are discussed in the code samples in the auto-mocking documentation.

Currently it seems that the auto-mocking documentation cannot be followed as the extension methods are unavailable even when the third-party mocking libraries are installed. The documentation for auto-mocking should perhaps be removed, or possibly the necessary code should be added back into the repo from those zip files. I'm not sure if the latter option is possible as that code likely would not build unless the library it depends upon is present.

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

No branches or pull requests

1 participant