FluentAssertions.Analyzers
0.34.1
dotnet add package FluentAssertions.Analyzers --version 0.34.1
NuGet\Install-Package FluentAssertions.Analyzers -Version 0.34.1
<PackageReference Include="FluentAssertions.Analyzers" Version="0.34.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="FluentAssertions.Analyzers" Version="0.34.1" />
<PackageReference Include="FluentAssertions.Analyzers"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add FluentAssertions.Analyzers --version 0.34.1
#r "nuget: FluentAssertions.Analyzers, 0.34.1"
#:package FluentAssertions.Analyzers@0.34.1
#addin nuget:?package=FluentAssertions.Analyzers&version=0.34.1
#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
A collection of Analyzers based on the best practices tips.
Analysis and Code Fix in Action
Install
using the latest stable version:
dotnet add package FluentAssertions.Analyzers
Docs
- FluentAssertions Analyzer Docs
- MsTest Analyzer Docs
- NUnit4 Analyzer Docs
- NUnit3 Analyzer Docs
- Xunit Analyzer 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
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on FluentAssertions.Analyzers:
| Package | Downloads |
|---|---|
|
EvaluateExpression.Asserts
Package Description |
|
|
GoSolve.Tools.Common
Package containing tools for goSolve's back-end services. |
|
|
BradleyGunnCore.Testing.Core
General testing tools for projects |
|
|
PixelatedLabs.Standard
Common static analysis configuration for .NET projects. |
|
|
Reo.Core.Testing.31
Package Description |
GitHub repositories (38)
Showing the top 20 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
|
|
|
kurrent-io/KurrentDB
KurrentDB is a database that's engineered for modern software applications and event-driven architectures. Its event-native design simplifies data modeling and preserves data integrity while the integrated streaming engine solves distributed messaging challenges and ensures data consistency.
|
|
|
microsoft/onefuzz
A self-hosted Fuzzing-As-A-Service platform
|
|
|
CommunityToolkit/Maui
The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
|
|
|
Nexus-Mods/NexusMods.App
Home of the development of the Nexus Mods App
|
|
|
SubnauticaNitrox/Nitrox
An open-source, multiplayer modification for the game Subnautica.
|
|
|
recyclarr/recyclarr
Automatically sync TRaSH Guides to your Sonarr and Radarr instances
|
|
|
SonarSource/sonar-dotnet
Code analyzer for C# and VB.NET projects
|
|
|
andrewlock/NetEscapades.AspNetCore.SecurityHeaders
Small package to allow adding security headers to ASP.NET Core websites
|
|
|
DigitalRuby/ExchangeSharp
ExchangeSharp is a powerful, fast and easy to use .NET/C# API for interfacing with many crypto currency exchanges. REST and web sockets are supported.
|
|
|
elastic/apm-agent-dotnet
|
|
|
vknet/vk
Vkontakte API for .NET
|
|
|
aaru-dps/Aaru
Aaru Data Preservation Suite
|
|
|
DataDog/dd-trace-dotnet
.NET Client Library for Datadog APM
|
|
|
microsoft/component-detection
Scans your project to determine what components you use
|
|
|
SonarSource/sonarlint-visualstudio
SonarLint extension for VisualStudio
|
|
|
OData/RESTier
A turn-key library for building RESTful services
|
|
|
thudugala/Plugin.LocalNotification
The local notification plugin provides a way to show local notifications from .Net MAUI and Xamarin Forms apps .
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 0.34.1 | 3,101,858 | 10/7/2024 | |
| 0.33.0 | 944,267 | 7/12/2024 | |
| 0.32.0 | 441,082 | 5/23/2024 | |
| 0.31.0 | 810,332 | 2/29/2024 | |
| 0.30.0 | 294,978 | 1/24/2024 | |
| 0.29.1 | 53,043 | 1/17/2024 | |
| 0.29.0 | 126,819 | 1/4/2024 | |
| 0.28.0 | 43,034 | 12/27/2023 | |
| 0.27.0 | 95,164 | 12/8/2023 | |
| 0.26.0 | 286,648 | 10/28/2023 | |
| 0.25.0 | 124,182 | 10/3/2023 | |
| 0.24.0 | 155,203 | 9/1/2023 | |
| 0.23.1 | 47,280 | 8/25/2023 | |
| 0.23.0 | 14,271 | 8/22/2023 | |
| 0.22.1 | 1,040 | 8/25/2023 | |
| 0.22.0 | 352,927 | 8/15/2023 | |
| 0.21.0 | 378,572 | 6/28/2023 | |
| 0.20.0 | 42,148 | 6/15/2023 | |
| 0.19.1 | 149,609 | 5/30/2023 | |
| 0.19.0 | 920 | 5/30/2023 | |
| 0.18.0 | 25,845 | 5/27/2023 | |
| 0.17.5 | 1,834 | 5/27/2023 | |
| 0.17.4 | 636 | 5/27/2023 | |
| 0.17.4-alpha1 | 405 | 5/27/2023 | |
| 0.17.2 | 1,866,019 | 4/1/2022 | |
| 0.17.1 | 914 | 4/1/2022 | |
| 0.17.0 | 2,544 | 3/31/2022 | |
| 0.16.0 | 377,793 | 2/14/2022 | |
| 0.15.0 | 244,917 | 1/10/2022 | |
| 0.14.0 | 4,722 | 1/10/2022 | |
| 0.13.0 | 198,784 | 11/16/2021 | |
| 0.12.1 | 122,114 | 10/21/2021 | |
| 0.12.0 | 53,894 | 10/11/2021 | |
| 0.11.4 | 2,412,353 | 8/17/2018 | |
| 0.11.3 | 12,761 | 7/5/2018 | |
| 0.11.2 | 3,114 | 6/25/2018 | |
| 0.11.1 | 1,717 | 6/23/2018 | |
| 0.11.0 | 1,583 | 6/21/2018 | |
| 0.10.3 | 1,643 | 6/20/2018 | |
| 0.10.2 | 1,636 | 6/19/2018 | |
| 0.10.1 | 1,892 | 6/9/2018 | |
| 0.10.0 | 3,063 | 4/17/2018 | |
| 0.9.0 | 7,931 | 2/11/2018 | |
| 0.8.0 | 3,743 | 1/11/2018 | |
| 0.7.0 | 7,464 | 10/25/2017 | |
| 0.6.0 | 1,365 | 10/24/2017 | |
| 0.5.1 | 1,363 | 10/23/2017 | |
| 0.5.0 | 6,450 | 10/22/2017 |