coverage: reduce exclusion of tests for .NET Framework#483
Conversation
There was a problem hiding this comment.
Pull request overview
Reduces conditional compilation exclusions so more of the HTTP monitoring tests run under .NET Framework, while still skipping the specific body-content assertions that aren’t supported/consistent there.
Changes:
- Removed
#if !NETFRAMEWORKguards around entire monitoring tests so the tests execute on .NET Framework. - Re-scoped
#if !NETFRAMEWORKto only wrap assertions that read/validate request/response content payloads.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Tests/Mockolate.Tests/Web/ItExtensionsTests.IsHttpRequestMessageTests.cs | Runs monitoring test on .NET Framework; skips only the content-length assertion for NETFRAMEWORK. |
| Tests/Mockolate.Tests/Web/ItExtensionsTests.IsHttpContentTests.cs | Runs monitoring test on .NET Framework; skips only the byte-length assertion for NETFRAMEWORK. |
| Tests/Mockolate.Tests/Web/ItExtensionsTests.IsHttpContentTests.WithStringTests.cs | Runs monitoring test on .NET Framework; skips only the string-content assertion for NETFRAMEWORK. |
49b7797 to
9b0fafe
Compare
🚀 Benchmark ResultsDetails
|
|
|
This is addressed in release v1.5.0. |



Reduces conditional compilation exclusions so more of the HTTP monitoring tests run under .NET Framework, while still skipping the specific body-content assertions that aren’t supported there.
Key Changes:
#if !NETFRAMEWORKguards around entire monitoring tests so the tests execute on .NET Framework.#if !NETFRAMEWORKto only wrap assertions that read/validate request/response content payloads.