Skip to content

fluentassertions/fluentassertions.analyzers

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