SkillAgentSearch skills...

Fluentassertions.analyzers

Analyzers based on the FluentAssertions best practices docs

Install / Use

/learn @fluentassertions/Fluentassertions.analyzers

README

<a href="https://www.fluentassertions.com"><img src="assets/images/fluent_assertions_analyzers_large_horizontal.svg" style="width:400px"/></a>

Extension methods to fluently assert the outcome of .NET tests

CI GitHub Repo stars GitHub contributors GitHub last commit GitHub commit activity open issues

A collection of Analyzers based on the best practices tips.

Alt

Analysis and Code Fix in Action

Demo

Install

using the latest stable version:

dotnet add package FluentAssertions.Analyzers

Docs

Configuration

© 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)

Getting Started

Build

dotnet build

Tests

dotnet test --configuration Release  --filter 'TestCategory=Completed'

Benchmarks

https://fluentassertions.github.io/fluentassertions.analyzers/dev/bench/

Example Usages

  • https://github.com/SonarSource/sonar-dotnet/pull/2072
  • https://github.com/microsoft/component-detection/pull/634
  • https://github.com/microsoft/onefuzz/pull/3314
  • https://github.com/chocolatey/choco/pull/2908
View on GitHub
GitHub Stars133
CategoryDevelopment
Updated3d ago
Forks25

Languages

C#

Security Score

100/100

Audited on Mar 25, 2026

No findings