Skip to content

docs: document new features#501

Merged
vbreuss merged 2 commits intomainfrom
topic/document-new-features
Feb 28, 2026
Merged

docs: document new features#501
vbreuss merged 2 commits intomainfrom
topic/document-new-features

Conversation

@vbreuss
Copy link
Copy Markdown
Contributor

@vbreuss vbreuss commented Feb 28, 2026

Updates Mockolate’s user-facing documentation to cover newly added verification waiting options, setup-specific verification, and HttpClient convenience return helpers, aligning README and Docs pages with the latest API surface.

Changes:

- `Within` and `WithCancellation`
- verification of method setups
- `HttpClient` return extensions
@vbreuss vbreuss self-assigned this Feb 28, 2026
Copilot AI review requested due to automatic review settings February 28, 2026 20:04
@vbreuss vbreuss added the documentation Improvements or additions to documentation label Feb 28, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Mockolate’s user-facing documentation to cover newly added verification waiting options, setup-specific verification, and HttpClient convenience return helpers, aligning README and Docs pages with the latest API surface.

Changes:

  • Document Within(TimeSpan) and WithCancellation(CancellationToken) for waiting on verifications.
  • Add documentation for verifying invocations of a specific method setup via InvokedSetup(setup).
  • Document HttpClient .ReturnsAsync(HttpStatusCode, ...) overloads for simplified response setup.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
README.md Adds docs for verification waiting (Within/WithCancellation), setup verification (InvokedSetup), and HttpClient .ReturnsAsync overload examples.
Docs/pages/special-types/01-httpclient.md Adds a “Return Message” section documenting .ReturnsAsync(HttpStatusCode, ...) overloads with examples.
Docs/pages/04-verify-interactions.md Adds docs for Within/WithCancellation and for verifying specific setups via InvokedSetup.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread Docs/pages/04-verify-interactions.md Outdated
Comment thread Docs/pages/special-types/01-httpclient.md Outdated
@github-actions
Copy link
Copy Markdown

Test Results

    21 files  ±0      21 suites  ±0   5m 38s ⏱️ +9s
 2 796 tests ±0   2 795 ✅ ±0  1 💤 ±0  0 ❌ ±0 
18 789 runs  ±0  18 788 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit 8357f92. ± Comparison against base commit c95953c.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 28, 2026

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.89GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.103
[Host] : .NET 10.0.3 (10.0.3, 10.0.326.7603), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Method Mean Error StdDev Gen0 Gen1 Allocated
Simple_Mockolate 1.513 μs 0.0087 μs 0.0081 μs 0.2460 - 4.02 KB
Simple_Moq 175.871 μs 0.5246 μs 0.4380 μs 0.4883 - 14.55 KB
Simple_NSubstitute 5.764 μs 0.0299 μs 0.0280 μs 0.5569 0.0076 9.14 KB
Simple_FakeItEasy 6.535 μs 0.0280 μs 0.0262 μs 0.4959 - 8.11 KB
Simple_TUnitMocks 2.261 μs 0.0553 μs 0.0517 μs 0.4005 0.0076 6.55 KB

@vbreuss vbreuss merged commit bb36529 into main Feb 28, 2026
8 checks passed
@vbreuss vbreuss deleted the topic/document-new-features branch February 28, 2026 20:12
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

This is addressed in release v1.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants