Analyzers 1.21.0 2025 April 5
Today, we're shipping two new releases:
- xUnit.net Core Framework v3
2.0.1
(release notes) - xUnit.net Analyzers
1.21.1
It's been 5 weeks since the release of 1.20.0
.
As always, we'd like to thank all the users who contributed to the success of xUnit.net through usage, feedback, and code. 🎉
Release Notes
These release notes are a comprehensive list of changes from 1.20.0
to 1.21.0
.
Assertion Analyzers
- BUG: The fixer for xUnit2017 would always pass the comparer argument to the converted
Assert.Contains
orAssert.DoesNotContain
call, even if the user passednull
to the comparer. Whilenull
is a valid value for LinqContains
, it is not legal for the assertions, so the fixer will now strip thenull
during conversion. Note: this only affects users who pass literalnull
to theContains
call. Passing a variable will retain the variable, and the compiler or runtime will resolvenull
issues. xunit/xunit#3244