Skip to content

ParamsKeyword: .NET 10, NUnit 5 and params collections - #2345

Merged
vladimir-pecanac-main merged 3 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/66340-csharp-params-keyword
Nov 5, 2026
Merged

vladimir-pecanac-main merged 3 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/66340-csharp-params-keyword

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the ParamsKeyword sample from net6.0 to net10.0 and updates the test packages (NUnit 5.0.0, NUnit3TestAdapter 6.3.1, Microsoft.NET.Test.Sdk 18.11.0, coverlet.collector 10.1.0), with the tests rewritten to Assert.That. Adds the C# 13 params collections examples from the article (AddRange with params IEnumerable, Count with params ReadOnlySpan, a Basket class with array and span overloads), moves the article's signature examples into ParamsSignatures.cs so they compile, and adds six tests covering them.

@vladimir-pecanac-main
vladimir-pecanac-main merged commit 0a78167 into CodeMazeBlog:main Nov 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant