FluentAssertions.Analyzers
0.33.0
dotnet add package FluentAssertions.Analyzers --version 0.33.0
NuGet\Install-Package FluentAssertions.Analyzers -Version 0.33.0
<PackageReference Include="FluentAssertions.Analyzers" Version="0.33.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add FluentAssertions.Analyzers --version 0.33.0
#r "nuget: FluentAssertions.Analyzers, 0.33.0"
// Install FluentAssertions.Analyzers as a Cake Addin #addin nuget:?package=FluentAssertions.Analyzers&version=0.33.0 // Install FluentAssertions.Analyzers as a Cake Tool #tool nuget:?package=FluentAssertions.Analyzers&version=0.33.0
<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 (29)
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的哔哩
|
|
microsoft/onefuzz
A self-hosted Fuzzing-As-A-Service platform
|
|
Cysharp/R3
The new future of dotnet/reactive and UniRx.
|
|
recyclarr/recyclarr
Automatically sync TRaSH Guides to your Sonarr and Radarr instances
|
Version | Downloads | Last updated | |
---|---|---|---|
0.33.0 | 33,620 | 7/12/2024 | |
0.32.0 | 184,568 | 5/23/2024 | |
0.31.0 | 452,158 | 2/29/2024 | |
0.30.0 | 205,650 | 1/24/2024 | |
0.29.1 | 38,839 | 1/17/2024 | |
0.29.0 | 99,874 | 1/4/2024 | |
0.28.0 | 25,499 | 12/27/2023 | |
0.27.0 | 64,110 | 12/8/2023 | |
0.26.0 | 232,886 | 10/28/2023 | |
0.25.0 | 101,782 | 10/3/2023 | |
0.24.0 | 134,044 | 9/1/2023 | |
0.23.1 | 43,524 | 8/25/2023 | |
0.23.0 | 11,593 | 8/22/2023 | |
0.22.1 | 568 | 8/25/2023 | |
0.22.0 | 207,227 | 8/15/2023 | |
0.21.0 | 255,870 | 6/28/2023 | |
0.20.0 | 34,282 | 6/15/2023 | |
0.19.1 | 128,181 | 5/30/2023 | |
0.19.0 | 404 | 5/30/2023 | |
0.18.0 | 20,628 | 5/27/2023 | |
0.17.5 | 1,365 | 5/27/2023 | |
0.17.4 | 233 | 5/27/2023 | |
0.17.4-alpha1 | 226 | 5/27/2023 | |
0.17.2 | 1,585,407 | 4/1/2022 | |
0.17.1 | 527 | 4/1/2022 | |
0.17.0 | 2,052 | 3/31/2022 | |
0.16.0 | 275,905 | 2/14/2022 | |
0.15.0 | 211,413 | 1/10/2022 | |
0.14.0 | 3,743 | 1/10/2022 | |
0.13.0 | 181,477 | 11/16/2021 | |
0.12.1 | 100,208 | 10/21/2021 | |
0.12.0 | 46,333 | 10/11/2021 | |
0.11.4 | 2,215,727 | 8/17/2018 | |
0.11.3 | 11,952 | 7/5/2018 | |
0.11.2 | 2,523 | 6/25/2018 | |
0.11.1 | 1,118 | 6/23/2018 | |
0.11.0 | 1,024 | 6/21/2018 | |
0.10.3 | 1,054 | 6/20/2018 | |
0.10.2 | 1,057 | 6/19/2018 | |
0.10.1 | 1,298 | 6/9/2018 | |
0.10.0 | 2,430 | 4/17/2018 | |
0.9.0 | 7,282 | 2/11/2018 | |
0.8.0 | 3,090 | 1/11/2018 | |
0.7.0 | 7,020 | 10/25/2017 | |
0.6.0 | 931 | 10/24/2017 | |
0.5.1 | 922 | 10/23/2017 | |
0.5.0 | 3,388 | 10/22/2017 |