forked from devlooped/moq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent auto-stubbing failure due to inaccessible property accessors (d…
…evlooped#847) 1. Add regression tests for lazy `SetupAllProperties` There are two groups of tests here: * Those that test `SetupAllProperties` (called either directly, or implicitly through `Mock.Of<T>`) followed by a property acces. This reflects `SetupAllProperties`' current implementation, which only sets up properties upon their first access (just-in-time). * Those that test `SetupAllProperties` itself, without any property access. Unsurprisingly, these currently pass, but the tests are still good to have in case we ever return `SetupAllProperties` to a ahead-of-time batch operation implementation. 2. Fix regression by checking accessor visibility 3. Update the changelog
- Loading branch information
Showing
3 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters