Conversation
They were replaced with source-generated extensions
There was a problem hiding this comment.
Pull request overview
This PR removes the MockMonitorExtensions class from Mockolate, completing a migration to source-generated extensions. The changes align with the project's architecture of using source generators for compile-time code generation.
Key Changes:
- Removed the manually written
MockMonitorExtensionsclass from the codebase - Updated API compatibility baselines to reflect the removal of this class
- Functionality is maintained through source-generated extensions
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Source/Mockolate/Monitor/MockMonitorExtensions.cs | Deleted the entire MockMonitorExtensions class containing the Monitor<T> extension method |
| Tests/Mockolate.Api.Tests/Expected/Mockolate_netstandard2.0.txt | Updated API baseline to remove MockMonitorExtensions from expected public API surface |
| Tests/Mockolate.Api.Tests/Expected/Mockolate_net8.0.txt | Updated API baseline to remove MockMonitorExtensions from expected public API surface |
| Tests/Mockolate.Api.Tests/Expected/Mockolate_net10.0.txt | Updated API baseline to remove MockMonitorExtensions from expected public API surface |
|
🚀 Benchmark ResultsDetails
|
|
This is addressed in release v0.44.0. |



This PR removes the
MockMonitorExtensionsclass from Mockolate, completing a migration to source-generated extensions. The changes align with the project's architecture of using source generators for compile-time code generation.Key Changes:
MockMonitorExtensionsclass from the codebase