chore(deps): update NSubstitute to 6.2.0
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
調査の方向性
Start with Directory.Packages.props and tests/Directory.Build.props to confirm where NSubstitute is centrally versioned and used. Check that version 6.2.0 is available on NuGet, then build and run tests/CommunityToolkit.Datasync.Client.Test and tests/CommunityToolkit.Datasync.Server.Test first. Update the package version and make minimal test changes for any failures; done means all tests pass locally and in CI with the same test counts.
索引モデルが issue の本文から書いたものです。
説明
Part 6 of the outdated-package sweep (dotnet-outdated 4.8.1, 2026-11-05). Major upgrade of NSubstitute used across all test projects.
Current state
NSubstitute 5.3.0 in root Directory.Packages.props; referenced for every project under tests/ via tests/Directory.Build.props. Target: 6.2.0.
What changes
- 6.0.0: targets .NET 8 / .NET Standard 2.0 (fine for us on net10.0); improved custom argument matcher support (
Arg.Isaccepts arg matchers); newArgMatchers.Matching; some breaking changes for custom argument matchers. - 6.1.0: reverted the nullability annotations introduced in 6.0 (they caused caller problems), so the public API is non-nullable-annotated again. Avoid 6.0.x; go straight to 6.2.
- 6.2.0: improved generic call matching (generic return-type assignability no longer used for matching), trusted NuGet publishing.
Release notes: https://github.com/nsubstitute/NSubstitute/releases
Expected impact is small; the most likely breakage is tests that mock generic methods and relied on return-type assignability matching, or custom IArgumentMatcher implementations.
Steps
- Bump
NSubstituteto 6.2.0 (confirm it exists on NuGet). dotnet buildthendotnet test. Run first the projects most likely to use mocks heavily (tests/CommunityToolkit.Datasync.Client.Test,tests/CommunityToolkit.Datasync.Server.Test).- Fix any failures with minimal test changes; do not alter production code.
- Dispatch
build-library.ymlon the fork with--ref <branch>.
Acceptance criteria
- Tests pass with NSubstitute 6.2.0 locally and in CI, with the same test counts as before.
- PR title:
chore(deps): update NSubstitute to 6.2.0.
- 主要言語
- C#
- スター
- 184
- フォーク
- 48
- 平均マージ
- 21分
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommunityToolkit/Datasync のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CommunityToolkit/Datasync#600 · コメント 1 件 ·
-
Blocked dependencies Server
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
CommunityToolkit/Datasync#594 ·
-
dependencies Examples
難易度 4/5 3〜5日 初心者へのやさしさ 40/100
CommunityToolkit/Datasync#593 ·
-
dependencies Infrastructure
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
CommunityToolkit/Datasync#591 ·
-
dependencies Infrastructure
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
CommunityToolkit/Datasync#590 ·
CommunityToolkit/Datasync の issue をすべて見る
似ている issue
-
enhancement needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/microsoft-ui-reactor#1460 ·
メンテナーはふだん 1 日以内に返信
-
t/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dotnet/maui#39950 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NimblePros/deviq-hugo#121 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
philterd/phileas-dotnet#188 ·
-
enhancement triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
nikneem/sessionize-api-client#55 · コメント 3 件 ·