A collection of Analyzers based on the best practices tips.
using the latest stable version:
dotnet add package AwesomeAssertions.Analyzers- AwesomeAssertions Analyzer Docs
- MsTest Analyzer Docs
- NUnit4 Analyzer Docs
- NUnit3 Analyzer Docs
- Xunit Analyzer Docs
You can exclude assertion methods using the .editorconfig file:
[*.cs]
ffa_excluded_methods=M:NUnit.Framework.Assert.Fail|M:NUnit.Framework.Assert.Fail(System.String)
dotnet builddotnet test --configuration Release --filter 'TestCategory=Completed'