Today, we're shipping three new releases:
It's been 3 week since the release of 1.6.0 RTM.
As always, we'd like to thank all the users who contributed to the success of xUnit.net through usage, feedback, and code contributions. 🎉
Important note: The minimum version for the analyzers is now Visual Studio 2022 17.2, as version 17.0 is no longer supported by Microsoft. This aligns with version Roslyn 4.2. Notably, the latest version of C# that's supported in Roslyn 4.2 is C# 10 (with some support for features that were experimental and ended up in C# 11), so some language features beyond C# 10 may cause false positives in analyzers, as well as not picking up any bug fixes in Roslyn since this release.
These release notes are a comprehensive list of changes from 1.6.0 to 1.7.0.
ArgumentOutOfRangeException
from InlineDataMustMatchTheoryParameters
.
xunit/xunit#2823
params
array in the test method.
xunit/xunit#2826
xunit/xunit#2827
TheoryData<>
to get type-safe compiler support for their data, as well as being able to take advantage of
several of the new TheoryData
-related analyzers that were added in 1.6.0.
xunit/xunit#1244
Assert.True
or Assert.False
with equality statements using constant
values of strings, integral values, floating point values, decimal values, or enum values.
A fixer is available that will convert to Assert.Equal
or Assert.NotEqual
as appropriate.
xunit/xunit#1503
Assert.True
or Assert.False
with equality statements that compare
against literal true
or false
values. A fixer is available that will
simplify the expression (and swap to the opposite assertion function, if needed).
xunit/xunit#1503