Skip to content

Comments

docs: document ThatAllSetupsAreUsed#281

Merged
vbreuss merged 2 commits intomainfrom
topic/document-thatallsetupsareused
Dec 5, 2025
Merged

docs: document ThatAllSetupsAreUsed#281
vbreuss merged 2 commits intomainfrom
topic/document-thatallsetupsareused

Conversation

@vbreuss
Copy link
Contributor

@vbreuss vbreuss commented Dec 5, 2025

This PR adds documentation for the ThatAllSetupsAreUsed verification method, which allows users to check if all configured mock setups have been invoked during test execution.

Key changes:

  • Documents the new ThatAllSetupsAreUsed method alongside the existing ThatAllInteractionsAreVerified method
  • Includes code examples and explanations for both the main README and documentation pages

@vbreuss vbreuss self-assigned this Dec 5, 2025
Copilot AI review requested due to automatic review settings December 5, 2025 15:16
@vbreuss vbreuss added the documentation Improvements or additions to documentation label Dec 5, 2025
Copy link

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

This PR adds documentation for the ThatAllSetupsAreUsed verification method, which allows users to check if all configured mock setups have been invoked during test execution.

Key changes:

  • Documents the new ThatAllSetupsAreUsed method alongside the existing ThatAllInteractionsAreVerified method
  • Includes code examples and explanations for both the main README and documentation pages

Reviewed changes

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

File Description
README.md Added documentation for ThatAllSetupsAreUsed method and restructured the unexpected interactions section with numbered items
Docs/pages/04-verify-interactions.md Added identical documentation for ThatAllSetupsAreUsed method in the verification interactions page

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Test Results

   14 files  ±0     14 suites  ±0   4m 42s ⏱️ +19s
1 385 tests ±0  1 384 ✅ ±0  1 💤 ±0  0 ❌ ±0 
9 184 runs  ±0  9 183 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit 12139f5. ± Comparison against base commit ea304cb.

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.72GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.100
[Host] : .NET 10.0.0 (10.0.0, 10.0.25.52411), 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.569 μs 0.0226 μs 0.0211 μs 0.2193 - 3.6 KB
Simple_Moq 180.300 μs 1.4983 μs 1.4015 μs 0.4883 - 14.55 KB
Simple_NSubstitute 5.986 μs 0.0499 μs 0.0442 μs 0.5569 0.0076 9.14 KB
Simple_FakeItEasy 6.519 μs 0.0394 μs 0.0349 μs 0.4959 - 8.11 KB

@vbreuss vbreuss enabled auto-merge (squash) December 5, 2025 15:22
@vbreuss vbreuss disabled auto-merge December 5, 2025 15:24
@vbreuss vbreuss merged commit 69355bd into main Dec 5, 2025
8 checks passed
@vbreuss vbreuss deleted the topic/document-thatallsetupsareused branch December 5, 2025 15:24
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 5, 2025

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

This is addressed in release v0.42.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.

1 participant