chore(deps): update NSubstitute to 6.2.0
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C#
- Star
- 184
- Fork
- 48
- Merge trung bình
- 21 phút
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommunityToolkit/Datasync
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CommunityToolkit/Datasync#600 · 1 bình luận ·
-
Blocked dependencies Server
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
CommunityToolkit/Datasync#594 ·
-
dependencies Examples
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 40/100
CommunityToolkit/Datasync#593 ·
-
dependencies Infrastructure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
CommunityToolkit/Datasync#591 ·
-
dependencies Infrastructure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
CommunityToolkit/Datasync#590 ·
Tất cả issue của CommunityToolkit/Datasync
Issue tương tự
-
enhancement needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/microsoft-ui-reactor#1460 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
t/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
dotnet/maui#39950 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The server's default HttpClient fails on plain http and on HTTPS servers without HTTP/2Có thể đã có người làm @yasmoradi đã nhận hôm nay. Đang mởarea / templates
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
bitfoundation/bitplatform#14659 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NimblePros/deviq-hugo#121 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100