Skip to content

chore(deps): update dependency moq to 4.21.0 - #6877

Merged
thomhurst merged 1 commit into
mainfrom
renovate/moq-4.x
Sep 24, 2026
Merged

thomhurst merged 1 commit into
mainfrom
renovate/moq-4.x

Conversation

@thomhurst

@thomhurst thomhurst commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

This PR contains the following updates:

Package Type Update Change
Moq nuget minor 4.20.72 → 4.21.0

Release Notes

moq/moq (Moq)

v4.21.0

Full Changelog

✨ Implemented enhancements:

  • Constructor arguments should be nullable #​1494
  • Moq "set" matcher fails when setting StringValues with string #​1465
  • Add the ability to compare ref argument by value #​1437
  • The public API is still missing nullable reference type annotations #​1418
  • "Invalid Callback" in NonVoidSetupPhrase.Returns -> ValidateCallbackReturnType is not informative or actionable #​1297
  • Allow passing method parameters to Throws/ThrowsAsync #​1296
  • Fail message on VerifyNoOtherCalls #​1263
  • Custom formatter for error messages #​1144
  • SetupSequence: CallBase Support for Void methods #​1096
  • Ability to specify proxy generator or invalidate it #​925
  • Performance improvement for Mocking many large classes #​1530 (@​crinksdr)
  • Updated ctor params to support nullable args #​1518 (@​Asafima)
  • Improve performance of It.Is matcher when used with an expression by compiling only once #​1512 (@​peterder72)

🐛 Fixed bugs:

  • Unit tests using Moq fail with runtime error after updating Moq to 4.20.72 (failure to load System.Threading.Tasks.Extensions) #​1648
  • [4.20.72] Missing XML Documentation #​1632
  • CollectionBuilderAttribute not considered for "default empty" #​1565
  • MockException reports wrong invocation list #​1534
  • Weird issue using spread operator on IEnumerable<Task> when using mocked methods #​1526
  • Changes made between 4.14.7 and 4.15.1 break exception handling #​1519
  • Generic method setups of parent types invoked #​1498
  • IVerifies.Verifiable* documentation comments errata? #​1481
  • It.IsAny<StructObject>() isn't #​1466
  • Mock.Protected().Verify fails sometimes #​1464
  • VerifySet throws TargetInvocationException when constructer refers to itself #​1455
  • Wrong Setup by using String interpolation within It.Is<string> #​1439
  • Cannot cast inside the Action<T> parameter of Verify method #​1438
  • mock.Invocations.Clear() violates self-consistency of inner mocks #​1120
  • Fix #​1648 reliably (lazy ValueTask registration + committed harness verification) #​1680 (@​kzu)
  • Minor enhancement to avoid null exceptions #​1542 (@​ShirAvneri)

🔨 Other:

  • Example for Scenario not covered in Examples #​1655
  • Adding Try Catch to Method returns empty List #​1595
  • Will Native AOT supported in future? #​1552
  • Possibility of adding Callback to ISetupSequentialAction #​1541
  • Mock.VerifyAll() with no parameters passed in should throw ArgumentOutOfRangeException #​1540
  • Could we add Verify methods to IMock<T>? #​1538
  • [FeatureRequest] Allow setting the default MockBehavior constructor parameter value #​1537
  • Question: Will parallel running mess up invocation counts? #​1536
  • Minor enhancement to avoid null exceptions. #​1533
  • Unable to use Callback or Returns on methods with more than 16 parameters. #​1531
  • Add Way to Exclude Calls from VerifyNoOtherCalls #​1490
  • Semantic error in unit test MatchesIsNotInEnumerable()? #​1483
  • Moq Setup does not work with "object" as generic type? #​1478
  • Explicit support for matching cancellation tokens with It class. (It.IsCancellationToken()) #​1477
  • Request: Ability to setup a property of type Task<ConcreteType> by mocking interface #​1460
  • Add ability for asynchronously waiting for an invocation #​1457
  • DefaultValueProvider extensibility #​1450
  • Should allow null references as constructor parameters. #​1416
  • Support Static Abstract property #​1398
  • IProtectedMock fails on a new virtual methods #​1341
  • Mocking an interface that has a sealed implementation of a method #​1334
  • Issue with multiple identical setups #​1330
  • Proper usage of It.IsAnyType #​1329
  • Better (Async) support for method returning nongeneric Task #​1328
  • Opt in parameters matching logic #​1267
  • Invocations.Clear() does not work on recursive mocks #​1242
  • VerifyNoOtherCalls fails reporting issue with different mock when using factory pattern #​1181
  • InSequence is not available for protected #​1173
  • MockRepository.Verify() also verifies mocks created outside of the repo #​1018
  • Cannot mock subclass of superclass with internal virtual methods #​991

🔀 Merged:


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@thomhurst thomhurst added dependencies Pull requests that update a dependency file MINOR renovate-bot labels Sep 24, 2026
@thomhurst
thomhurst enabled auto-merge (squash) September 24, 2026 16:15
@thomhurst
thomhurst deployed to Pull Requests September 24, 2026 16:15 — with GitHub Actions Active
@thomhurst
thomhurst deployed to Pull Requests September 24, 2026 16:15 — with GitHub Actions Active
@thomhurst
thomhurst deployed to Pull Requests September 24, 2026 16:15 — with GitHub Actions Active
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T16:17:51.703596Z 80c2319 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 793306a7-c96d-49c3-a02b-801d174d3211

📥 Commits

Reviewing files that changed from the base of the PR and between fb443b2 and 80c2319.

📒 Files selected for processing (1)
  • Directory.Packages.props

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The centrally managed Moq package version changes from 4.20.72 to 4.21.0.

Changes

Package version update

Layer / File(s) Summary
Update Moq version
Directory.Packages.props
The centrally managed Moq package version changes from 4.20.72 to 4.21.0.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to 80c23

This updates Moq for the benchmarks project. Available package metadata covers its .NET 8–10 targets, and no concrete merge-blocking compatibility issue is evident.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: updating the Moq dependency to version 4.21.0.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the package line
Moq steps forward, version fine
One small edit hops in place
No other changes leave a trace
The rabbit nods and bounds away

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no actionable regression was identified.

Summary

Updates the centrally managed Moq version from 4.20.72 to 4.21.0.

  • The repository’s direct Moq consumer is the multi-targeted mocking benchmark project.

Reviews (1) · Last reviewed commit: "chore(deps): update dependency moq to 4...."

@thomhurst
thomhurst merged commit a1fa4a2 into main Sep 24, 2026
14 checks passed
@thomhurst
thomhurst deleted the renovate/moq-4.x branch September 24, 2026 16:46
intellitect-bot pushed a commit to IntelliTect/EssentialCSharp.Web that referenced this pull request Sep 25, 2026
Updated [TUnit](https://github.com/thomhurst/TUnit) from 1.69.0 to
1.69.16.

<details>
<summary>Release notes</summary>

_Sourced from [TUnit's
releases](https://github.com/thomhurst/TUnit/releases)._

## 1.69.16

<!-- Release notes generated using configuration in .github/release.yml
at v1.69.16 -->

## What's Changed
### Other Changes
* fix: preserve TRX results when session cleanup fails by @​Sing303 in
thomhurst/TUnit#6879
### Dependencies
* chore(deps): update tunit to 1.69.0 by @​thomhurst in
thomhurst/TUnit#6864
* chore(deps): update dependency messagepack to 3.1.10 by @​thomhurst in
thomhurst/TUnit#6866
* chore(deps): update dependency dompurify to v3.4.16 by @​thomhurst in
thomhurst/TUnit#6867
* chore(deps): update dependency serialize-javascript to v7.1.2 by
@​thomhurst in thomhurst/TUnit#6868
* chore(deps): update dependency azure.data.tables to 12.13.0 by
@​thomhurst in thomhurst/TUnit#6870
* chore(deps): update dependency microsoft.playwright to 1.63.0 by
@​thomhurst in thomhurst/TUnit#6871
* chore(deps): update verify to 33.1.2 by @​thomhurst in
thomhurst/TUnit#6872
* chore(deps): update dependency verify.tool to v0.9.2 by @​thomhurst in
thomhurst/TUnit#6873
* chore(deps): update verify to 33.1.3 by @​thomhurst in
thomhurst/TUnit#6874
* chore(deps): update verify to 33.1.4 by @​thomhurst in
thomhurst/TUnit#6876
* chore(deps): update dependency moq to 4.21.0 by @​thomhurst in
thomhurst/TUnit#6877
* chore(deps): bump image-size from 2.0.2 to 2.0.4 in /docs by
@​dependabot[bot] in thomhurst/TUnit#6878

## New Contributors
* @​Sing303 made their first contribution in
thomhurst/TUnit#6879

**Full Changelog**:
thomhurst/TUnit@v1.69.0...v1.69.16

Commits viewable in [compare
view](thomhurst/TUnit@v1.69.0...v1.69.16).
</details>

Updated [TUnit.AspNetCore](https://github.com/thomhurst/TUnit) from
1.69.0 to 1.69.16.

<details>
<summary>Release notes</summary>

_Sourced from [TUnit.AspNetCore's
releases](https://github.com/thomhurst/TUnit/releases)._

## 1.69.16

<!-- Release notes generated using configuration in .github/release.yml
at v1.69.16 -->

## What's Changed
### Other Changes
* fix: preserve TRX results when session cleanup fails by @​Sing303 in
thomhurst/TUnit#6879
### Dependencies
* chore(deps): update tunit to 1.69.0 by @​thomhurst in
thomhurst/TUnit#6864
* chore(deps): update dependency messagepack to 3.1.10 by @​thomhurst in
thomhurst/TUnit#6866
* chore(deps): update dependency dompurify to v3.4.16 by @​thomhurst in
thomhurst/TUnit#6867
* chore(deps): update dependency serialize-javascript to v7.1.2 by
@​thomhurst in thomhurst/TUnit#6868
* chore(deps): update dependency azure.data.tables to 12.13.0 by
@​thomhurst in thomhurst/TUnit#6870
* chore(deps): update dependency microsoft.playwright to 1.63.0 by
@​thomhurst in thomhurst/TUnit#6871
* chore(deps): update verify to 33.1.2 by @​thomhurst in
thomhurst/TUnit#6872
* chore(deps): update dependency verify.tool to v0.9.2 by @​thomhurst in
thomhurst/TUnit#6873
* chore(deps): update verify to 33.1.3 by @​thomhurst in
thomhurst/TUnit#6874
* chore(deps): update verify to 33.1.4 by @​thomhurst in
thomhurst/TUnit#6876
* chore(deps): update dependency moq to 4.21.0 by @​thomhurst in
thomhurst/TUnit#6877
* chore(deps): bump image-size from 2.0.2 to 2.0.4 in /docs by
@​dependabot[bot] in thomhurst/TUnit#6878

## New Contributors
* @​Sing303 made their first contribution in
thomhurst/TUnit#6879

**Full Changelog**:
thomhurst/TUnit@v1.69.0...v1.69.16

Commits viewable in [compare
view](thomhurst/TUnit@v1.69.0...v1.69.16).
</details>

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Sep 25, 2026

This branch was successfully deployed

1 active deployment
Pull Requests — 80c23197 Deployed Sep 24, 2026 by thomhurst via modularpipeline (macos-latest) #19476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file MINOR renovate-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants