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
© Thanks to https://github.com/meziantou/Meziantou.FluentAssertionsAnalyzers
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'https://AwesomeAssertions.github.io/AwesomeAssertions.analyzers/dev/bench/
