Skip to content

Immutable Collections in C#: update sample to .NET 10 - #2339

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/84661-csharp-immutable-collections
Nov 7, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/84661-csharp-immutable-collections

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the ImmutableCollectionsInCSharp test project from net7.0 to net10.0 with current test packages (Microsoft.NET.Test.Sdk 18.11.0, xunit 2.9.3, xunit.runner.visualstudio 4.0.1, coverlet.collector 10.1.0), switches to a file-scoped namespace, fixes the misspelled test names GivenImmutablStack, GivenImmutablLists and GivenImmutablSortedSet, and adds a GivenCollectionExpressions test for the new collection expressions snippet in the article. All six tests pass locally.

Target net10.0 with current test packages, use a file-scoped namespace,
fix three test name typos and add a collection expressions test.
@vladimir-pecanac-main
vladimir-pecanac-main merged commit 9be62d1 into CodeMazeBlog:main Nov 7, 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