docs: document MockMonitor and ClearAllInteractions#441
Conversation
There was a problem hiding this comment.
Pull request overview
This PR documents the MockMonitor and ClearAllInteractions features by adding a new documentation page and updating the README. The changes also refactor test code to use the more concise MonitorMock extension method.
Changes:
- Added documentation for monitoring interactions and clearing interaction history
- Updated test code to use the
MonitorMockextension method instead of manual monitor creation - Reorganized documentation files by renumbering existing pages
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Tests/Mockolate.Tests/Monitor/MockMonitorTests.cs | Refactored tests to use MonitorMock extension method |
| README.md | Added monitor interactions section and reformatted heading styles |
| Mockolate.slnx | Updated solution file to include new documentation page |
| Docs/pages/advanced-features/04-check-for-unexpected-interactions.md | Renumbered from 03 and updated heading styles |
| Docs/pages/advanced-features/03-monitor-interactions.md | New documentation page for monitoring interactions |
Test Results 13 files - 8 13 suites - 8 2m 58s ⏱️ - 2m 35s For more details on these failures, see this check. Results for commit 724c2a6. ± Comparison against base commit da25886. This pull request removes 20 tests. |
🚀 Benchmark ResultsDetails
|
|
|
This is addressed in release v1.1.0. |



This PR documents the
MockMonitorandClearAllInteractionsfeatures by adding a new documentation page and updating the README. The changes also refactor test code to use the more conciseMonitorMockextension method.Changes: