FluentAssertions.Analyzers 0.34.1

dotnet add package FluentAssertions.Analyzers --version 0.34.1                
NuGet\Install-Package FluentAssertions.Analyzers -Version 0.34.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FluentAssertions.Analyzers" Version="0.34.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentAssertions.Analyzers --version 0.34.1                
#r "nuget: FluentAssertions.Analyzers, 0.34.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FluentAssertions.Analyzers as a Cake Addin
#addin nuget:?package=FluentAssertions.Analyzers&version=0.34.1

// Install FluentAssertions.Analyzers as a Cake Tool
#tool nuget:?package=FluentAssertions.Analyzers&version=0.34.1                

<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 alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image 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

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on FluentAssertions.Analyzers:

Package Downloads
Reo.Core.Testing

Package Description

Reo.Core.IntegrationTesting

Package Description

EvaluateExpression.Asserts

Package Description

GoSolve.Tools.Common

Package containing tools for goSolve's back-end services.

BradleyGunnCore.Testing.Core

General testing tools for projects

GitHub repositories (33)

Showing the top 5 popular GitHub repositories that depend on FluentAssertions.Analyzers:

Repository Stars
chocolatey/choco
Chocolatey - the package manager for Windows
Richasy/Bili.Uwp
适用于新系统UI的哔哩
quartznet/quartznet
Quartz Enterprise Scheduler .NET
microsoft/onefuzz
A self-hosted Fuzzing-As-A-Service platform
Cysharp/R3
The new future of dotnet/reactive and UniRx.
Version Downloads Last updated
0.34.1 200,542 10/7/2024
0.33.0 485,474 7/12/2024
0.32.0 293,073 5/23/2024
0.31.0 579,012 2/29/2024
0.30.0 239,721 1/24/2024
0.29.1 43,032 1/17/2024
0.29.0 116,981 1/4/2024
0.28.0 30,264 12/27/2023
0.27.0 77,631 12/8/2023
0.26.0 259,662 10/28/2023
0.25.0 108,286 10/3/2023
0.24.0 139,802 9/1/2023
0.23.1 45,596 8/25/2023
0.23.0 12,049 8/22/2023
0.22.1 622 8/25/2023
0.22.0 248,813 8/15/2023
0.21.0 288,510 6/28/2023
0.20.0 36,584 6/15/2023
0.19.1 132,758 5/30/2023
0.19.0 443 5/30/2023 0.19.0 is deprecated because it has critical bugs.
0.18.0 21,908 5/27/2023
0.17.5 1,427 5/27/2023
0.17.4 259 5/27/2023
0.17.4-alpha1 255 5/27/2023
0.17.2 1,655,144 4/1/2022
0.17.1 554 4/1/2022
0.17.0 2,088 3/31/2022
0.16.0 299,767 2/14/2022
0.15.0 218,839 1/10/2022
0.14.0 3,894 1/10/2022
0.13.0 186,039 11/16/2021
0.12.1 105,178 10/21/2021
0.12.0 48,152 10/11/2021
0.11.4 2,264,399 8/17/2018
0.11.3 12,097 7/5/2018
0.11.2 2,563 6/25/2018
0.11.1 1,158 6/23/2018
0.11.0 1,054 6/21/2018
0.10.3 1,090 6/20/2018
0.10.2 1,102 6/19/2018
0.10.1 1,343 6/9/2018
0.10.0 2,477 4/17/2018
0.9.0 7,335 2/11/2018
0.8.0 3,135 1/11/2018
0.7.0 7,065 10/25/2017
0.6.0 969 10/24/2017
0.5.1 971 10/23/2017
0.5.0 4,014 10/22/2017