Skip to content

fluentassertions/fluentassertions.analyzers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2fe5f04 · Mar 9, 2025
Mar 7, 2025
Jun 7, 2023
Oct 23, 2024
Jun 3, 2024
Nov 24, 2024
Oct 8, 2017
Oct 10, 2017
Jun 3, 2024
Jun 21, 2018
Oct 8, 2017
Mar 9, 2025

Repository files navigation

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