A collection of Analyzers based on the best practices tips.
using the latest stable version:
dotnet add package FluentAssertions.Analyzers
- FluentAssertions 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 build
dotnet test --configuration Release --filter 'TestCategory=Completed'
https://fluentassertions.github.io/fluentassertions.analyzers/dev/bench/