TedToolkit.Assertions.FluentValidation
2026.5.15
dotnet add package TedToolkit.Assertions.FluentValidation --version 2026.5.15
NuGet\Install-Package TedToolkit.Assertions.FluentValidation -Version 2026.5.15
<PackageReference Include="TedToolkit.Assertions.FluentValidation" Version="2026.5.15" />
<PackageVersion Include="TedToolkit.Assertions.FluentValidation" Version="2026.5.15" />
<PackageReference Include="TedToolkit.Assertions.FluentValidation" />
paket add TedToolkit.Assertions.FluentValidation --version 2026.5.15
#r "nuget: TedToolkit.Assertions.FluentValidation, 2026.5.15"
#:package TedToolkit.Assertions.FluentValidation@2026.5.15
#addin nuget:?package=TedToolkit.Assertions.FluentValidation&version=2026.5.15
#tool nuget:?package=TedToolkit.Assertions.FluentValidation&version=2026.5.15
TedToolkit.Assertions.FluentValidation
An extension for TedToolkit.Assertions that integrates with FluentValidation, allowing you to assert that an object passes a FluentValidation validator.
Installation
dotnet add package TedToolkit.Assertions.FluentValidation
This package requires TedToolkit.Assertions (installed automatically as a dependency).
Supported Frameworks
.NET 6 / 7 / 8 / 9 / 10, .NET Framework 4.7.2 / 4.8, .NET Standard 2.0 / 2.1
Usage
Use the BeValidBy assertion to validate an object against a FluentValidation validator:
using TedToolkit.Assertions;
using TedToolkit.Assertions.FluentValidation;
// Define a validator
public class OrderValidator : AbstractValidator<Order>
{
public OrderValidator()
{
RuleFor(x => x.Name).NotEmpty();
RuleFor(x => x.Amount).GreaterThan(0);
}
}
// Assert using the validator
var order = new Order { Name = "Widget", Amount = 5 };
order.Must().BeValidBy(new OrderValidator());
You can also pass a validation strategy to control which rules are evaluated:
order.Must().BeValidBy(new OrderValidator(), strategy =>
strategy.IncludeRuleSets("QuickCheck"));
When the assertion fails, the error message includes all validation errors returned by FluentValidation.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
-
.NETFramework 4.8
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
-
.NETStandard 2.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
-
.NETStandard 2.1
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
-
net10.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
-
net6.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
-
net7.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
-
net8.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
-
net9.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.5.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.5.15 | 101 | 5/15/2026 |
| 2026.4.17 | 113 | 4/17/2026 |
| 2026.4.8 | 104 | 4/8/2026 |
| 2026.3.20 | 103 | 3/20/2026 |
| 2026.2.4.1 | 115 | 2/4/2026 |
| 2026.2.4 | 111 | 2/4/2026 |
| 2026.2.2.2 | 113 | 2/2/2026 |
| 2026.2.2.1 | 113 | 2/2/2026 |
| 2026.2.2 | 112 | 2/2/2026 |
| 2026.2.1.2 | 117 | 2/1/2026 |
| 2026.2.1.1 | 112 | 2/1/2026 |
| 2026.2.1 | 110 | 2/1/2026 |
| 2025.12.23.1 | 200 | 12/23/2025 |
| 2025.12.23 | 191 | 12/23/2025 |
| 2025.12.17 | 295 | 12/17/2025 |
| 2025.12.12.2 | 150 | 12/12/2025 |
| 2025.12.12.1 | 141 | 12/12/2025 |
| 2025.12.12 | 154 | 12/12/2025 |
| 2025.12.9 | 467 | 12/9/2025 |
| 2025.11.25 | 216 | 11/25/2025 |