Skip to main content
Any Framework

Analyzers to help writing AwesomeAssertions the right way.

Published
Feb 24, 2025
1y ago
Total Downloads
2.1M
2,117,824

Install

dotnet add package AwesomeAssertions.Analyzers --version 0.34.2

No framework information available.

README

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.

Analysis and Code Fix in Action

Demo

Install

using the latest stable version:

dotnet add package AwesomeAssertions.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

Changes from Previous Version

No structural changes between v0.34.1 and v0.34.2.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.