Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes the string representation of Match.* methods to include the Match. prefix, making the output more explicit and clear about the origin of these matcher methods.
Key changes:
- Updated
ToString()implementations inMatch.AnyParameters(),Match.Parameters(), andMatch.WithDefaultParameters()to include the "Match." prefix - Updated corresponding test assertions to expect the new string format with the prefix
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Source/Mockolate/Match.AnyParameters.cs | Updated ToString() to return "Match.AnyParameters()" instead of "AnyParameters()" |
| Source/Mockolate/Match.Parameters.cs | Updated ToString() to return "Match.Parameters(...)" instead of "Parameters(...)" |
| Source/Mockolate/Match.WithDefaultParameters.cs | Updated ToString() to return "Match.WithDefaultParameters()" instead of "WithDefaultParameters()" |
| Tests/Mockolate.Tests/MatchTests.AnyParametersTests.cs | Updated test expectation to match new string format |
| Tests/Mockolate.Tests/MatchTests.ParametersTests.cs | Updated test expectation to match new string format |
| Tests/Mockolate.Tests/MatchTests.WithDefaultParametersTests.cs | Updated test expectation to match new string format |
| Tests/Mockolate.Tests/MockMethods/SetupMethodTests.cs | Updated multiple test assertions to expect "Match.AnyParameters()" and added new tests for string representation with AnyParameters() |
🚀 Benchmark ResultsDetails
|
|
Test Results 14 files ± 0 14 suites ±0 5m 40s ⏱️ +24s Results for commit 917029d. ± Comparison against base commit a561d1d. This pull request removes 8 and adds 10 tests. Note that renamed tests count towards both. |
|
This is addressed in release v0.46.0. |



This PR fixes the string representation of
Match.*methods to include theMatch.prefix, making the output more explicit and clear about the origin of these matcher methods.Key changes:
ToString()implementations inMatch.AnyParameters(),Match.Parameters(), andMatch.WithDefaultParameters()to include the "Match." prefix