site/releases/analyzers/1.23.0.md
Today, we're shipping three new releases:
3.0.0 (release notes)1.23.03.1.2 (release notes)It's been 5 weeks since the release of 1.22.0.
As always, we'd like to thank all the users who contributed to the success of xUnit.net through usage, feedback, and code. 🎉
These release notes are a comprehensive list of changes from 1.22.0 to 1.23.0.
We have updated xUnit1003 to detect usage of IDataAttribute rather than depending solely on detecting classes derived from DataAttribute. xunit/xunit#3174{: .issue-link }
We have updated xUnit1007 to properly check for [ClassData<>], which was introduced in Core Framework v3 3.0.0.
We have added xUnit1052 to flag cases where developers are incorrectly trying to embed instances of ITheoryDataRow instead of TheoryData<>. When using ITheoryDataRow (or any of its derived types, like TheoryDataRow<>), your theory data providers should return IEnumerable<...> rather than TheoryData<...>. xunit/xunit#3113{: .issue-link }
We have created xUnit3003 to flag classes which extend FactAttribute (directly or indirectly) which do not provide a constructor that collects and passes along source location information (file name and line number). This is used to provide source information to Microsoft Testing Platform runners, like Test Explorer and dotnet test, to link tests to their source code.
This analyzer is only applicable to projects which are linked against xUnit.net v3 version 3.0.0 or later.