Conversation
## Changes - Added "Wrapping Existing Instances" subsection to README.md and Docs/pages/01-create-mocks.md - Documented that Mock.Wrap forwards calls to real instances while tracking interactions - Clarified that only interface types can be wrapped - Added example showing wrapping, invocation, and verification
There was a problem hiding this comment.
Pull request overview
This PR adds documentation for the Mock.Wrap<T>() feature, which enables wrapping existing instances with mock tracking capabilities. The documentation explains that this feature forwards calls to real instances while still allowing interaction verification.
Changes:
- Added "Wrapping Existing Instances" section with usage examples
- Documented constraints and behavior of
Mock.Wrap<T>() - Included notes about interface-only support and setup override capabilities
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Added wrapping documentation section with example and usage notes |
| Docs/pages/01-create-mocks.md | Added corresponding wrapping documentation to the create-mocks documentation page |
|
🚀 Benchmark ResultsDetails
|
|
This is addressed in release v1.1.0. |



This PR adds documentation for the
Mock.Wrap<T>()feature, which enables wrapping existing instances with mock tracking capabilities. The documentation explains that this feature forwards calls to real instances while still allowing interaction verification.Changes:
Mock.Wrap<T>()