FluentAssertions.Analyzers 0.33.0

dotnet add package FluentAssertions.Analyzers --version 0.33.0                
NuGet\Install-Package FluentAssertions.Analyzers -Version 0.33.0                
此命令旨在在 Visual Studio 的包管理器控制台中使用,因为它使用了 NuGet 模块的 Install-Package 版本。
<PackageReference Include="FluentAssertions.Analyzers" Version="0.33.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
对于支持 PackageReference 的项目,将此 XML 节点复制到项目文件中以引用包。
paket add FluentAssertions.Analyzers --version 0.33.0                
#r "nuget: FluentAssertions.Analyzers, 0.33.0"                
#r 指令可用于 F# Interactive 和 Polyglot Notebooks。将其复制到交互工具或脚本的源代码中以引用包。
// 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>

用于流畅断言 .NET 测试结果的扩展方法

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

基于最佳实践 技巧 的分析程序集合。

Alt

分析及代码修复演示

Demo

安装

使用最新稳定版本

dotnet add package FluentAssertions.Analyzers

文档

配置

© 感谢 https://github.com/meziantou/Meziantou.FluentAssertionsAnalyzers

您可以使用 .editorconfig 文件来排除断言方法

[*.cs]
ffa_excluded_methods=M:NUnit.Framework.Assert.Fail;M:NUnit.Framework.Assert.Fail(System.String)

入门指南

构建

dotnet build

测试

dotnet test --configuration Release  --filter 'TestCategory=Completed'

基准测试

https://fluentassertions.github.io/fluentassertions.analyzers/dev/bench/

示例用法

本软件包没有支持框架资源。

了解更多关于 目标框架.NET Standard 的信息。

本软件包没有依赖项。

NuGet 软件包 (5)

显示依赖于 FluentAssertions.Analyzers 的前 5 个 NuGet 软件包

软件包 下载
EvaluateExpression.Asserts

软件包描述

GoSolve.Tools.Common

包含goSolve后端服务工具的包。

BradleyGunnCore.Testing.Core

项目的通用测试工具

PixelatedLabs.Standard

用于.NET项目的通用静态分析配置。

Reo.Core.Testing.31

软件包描述

GitHub仓库 (29)

显示依赖于FluentAssertions.Analyzers的top 5流行GitHub仓库。

仓库 星标
chocolatey/choco
Chocolatey - Windows的包管理器
Richasy/Bili.Uwp
适用于新系统UI的哔哩
microsoft/onefuzz
自托管的Fuzzing-As-A-Service平台
Cysharp/R3
dotnet/reactive和UniRx的新未来。
recyclarr/recyclarr
自动同步TRaSH指南到您的Sonarr和Radarr实例
版本 下载 最后更新
0.33.0 80,675 7/12/2024
0.32.0 202,977 5/23/2024
0.31.0 473,137 2/29/2024
0.30.0 210,063 1/24/2024
0.29.1 39,302 1/17/2024
0.29.0 102,770 1/4/2024
0.28.0 25,999 12/27/2023
0.27.0 65,660 12/8/2023
0.26.0 236,673 10/28/2023
0.25.0 102,646 10/3/2023
0.24.0 134,610 9/1/2023
0.23.1 44,433 8/25/2023
0.23.0 11,636 8/22/2023
0.22.1 570 8/25/2023
0.22.0 212,141 8/15/2023
0.21.0 260,187 6/28/2023
0.20.0 34,551 6/15/2023
0.19.1 128,617 5/30/2023
0.19.0 404 5/30/2023 0.19.0版本已弃用,因为它存在严重错误。
0.18.0 20,883 5/27/2023
0.17.5 1,368 5/27/2023
0.17.4 233 5/27/2023
0.17.4-alpha1 227 5/27/2023
0.17.2 1,595,569 4/1/2022
0.17.1 528 4/1/2022
0.17.0 2,053 3/31/2022
0.16.0 279,608 2/14/2022
0.15.0 212,176 1/10/2022
0.14.0 3,791 1/10/2022
0.13.0 182,046 11/16/2021
0.12.1 100,801 10/21/2021
0.12.0 46,531 10/11/2021
0.11.4 2,221,869 8/17/2018
0.11.3 11,962 7/5/2018
0.11.2 2,527 6/25/2018
0.11.1 1,123 6/23/2018
0.11.0 1,029 6/21/2018
0.10.3 1,059 6/20/2018
0.10.2 1,062 6/19/2018
0.10.1 1,302 6/9/2018
0.10.0 2,434 4/17/2018
0.9.0 7,291 2/11/2018
0.8.0 3,097 1/11/2018
0.7.0 7,026 10/25/2017
0.6.0 935 10/24/2017
0.5.1 926 10/23/2017
0.5.0 3,434 10/22/2017