This is a suite of analyzers that target the NUnit testing framework. Right now, the code is separate from the NUnit framework, so if you want to try out the analyzers you'll need to download the analyzers separately as a nuget package. In the future the analyzers may be added as part of the NUnit framework package but that hasn't been done yet.
Prerelease nuget packages can be found on MyGet. Please try out the package and report bugs and feature requests.
Below we give two examples of analyzers. One will look for methods with the
[TestCase] attribute and makes sure the argument values are correct for the types of the method parameters along with the
ExpectedResult value if it is provided.
The other analyzer looks for classic model assertions (e.g.
Assert.IsTrue(), etc.). This analyzer contains a fixer that can translate the classic model assertions into constraint model assertions (
NUnit analyzers are Open Source software and released under the MIT license, which allow the use of the analyzers in free and commercial applications and libraries without restrictions.
There are several ways to contribute to this project. One can try things out, report bugs, propose improvements and new functionality, work on issues (especially the issues marked with the labels help wanted and Good First Issue), and in general join in the conversations. See Contributing for more information.