Today, we're shipping two new releases:
It's been 2 weeks since the release of 1.8.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. 🎉
These release notes are a comprehensive list of changes from 1.8.0 to 1.9.0.
ConfigureAwait
inside of a lambda expression.
xunit/xunit.analyzers#177
Task
methods inside of a lambda
expression.
xunit/xunit#2856
[InlineData]
as being null
.
xunit/xunit#2852
Assert.Equal
or Assert.NotEqual
with two sets, using the function overload for comparisons. Due to the way sets are
implemented internally, a full implementation of IEqualityComparer<T>
is required, because the
implementations of Equals
and GetHashCode
must be consistent (so just passing the equivalent
of Equals
as a function is not sufficient for proper comparisons).
xunit/xunit#2840
Assert.Equal
or Assert.NotEqual
with a set (like HashSet
) and a linear collection (like an array or list).
Since sets are not stored in linear fashion, they have an unpredictable enumeration order, which can cause false
positives or false negatives during testing. Applying an order to the set (for example, using LINQ's OrderBy
extension method) ensures that the set becomes linear with a predictable order.