Skip to content

UsingExceptInCSharp: .NET 10, MSTest 4 and ExceptBy - #2344

Merged
vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/117061-csharp-using-the-except-method-in-linq
Nov 4, 2026
Merged

vladimir-pecanac-main merged 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/117061-csharp-using-the-except-method-in-linq

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves both projects in csharp-linq/UsingExceptInCSharp to net10.0 and the test project to MSTest 4.5.2, Microsoft.NET.Test.Sdk 18.11.0 and coverlet.collector 10.1.0, ports the null test from ExpectedException to Assert.ThrowsExactly, fixes the ignore-case test so it checks the real names and the count, switches EmployeeComparer.GetHashCode to HashCode.Combine, adds an EmployeeRecord type and four examples (duplicates removed by Except, copies kept without a comparer, records compared by value, ExceptBy on the employee ID) with a test for each, and makes Program.cs print every result.

@vladimir-pecanac-main
vladimir-pecanac-main merged commit 5131ec7 into CodeMazeBlog:main Nov 4, 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