AwesomeAssertions.Analyzers
0.34.1
dotnet add package AwesomeAssertions.Analyzers --version 0.34.1
NuGet\Install-Package AwesomeAssertions.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="AwesomeAssertions.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 AwesomeAssertions.Analyzers --version 0.34.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AwesomeAssertions.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 AwesomeAssertions.Analyzers as a Cake Addin #addin nuget:?package=AwesomeAssertions.Analyzers&version=0.34.1 // Install AwesomeAssertions.Analyzers as a Cake Tool #tool nuget:?package=AwesomeAssertions.Analyzers&version=0.34.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 AwesomeAssertions.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
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AwesomeAssertions.Analyzers:
Package | Downloads |
---|---|
Reo.Core.Testing
Package Description |
|
Reo.Core.IntegrationTesting
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.34.1 | 272 | 1/23/2025 |