TedToolkit.Assertions.FluentValidation
2026.4.8
dotnet add package TedToolkit.Assertions.FluentValidation --version 2026.4.8
NuGet\Install-Package TedToolkit.Assertions.FluentValidation -Version 2026.4.8
<PackageReference Include="TedToolkit.Assertions.FluentValidation" Version="2026.4.8" />
<PackageVersion Include="TedToolkit.Assertions.FluentValidation" Version="2026.4.8" />
<PackageReference Include="TedToolkit.Assertions.FluentValidation" />
paket add TedToolkit.Assertions.FluentValidation --version 2026.4.8
#r "nuget: TedToolkit.Assertions.FluentValidation, 2026.4.8"
#:package TedToolkit.Assertions.FluentValidation@2026.4.8
#addin nuget:?package=TedToolkit.Assertions.FluentValidation&version=2026.4.8
#tool nuget:?package=TedToolkit.Assertions.FluentValidation&version=2026.4.8
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.4.8)
-
.NETFramework 4.8
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.4.8)
-
.NETStandard 2.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.4.8)
-
.NETStandard 2.1
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.4.8)
-
net10.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.4.8)
-
net6.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.4.8)
-
net7.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.4.8)
-
net8.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.4.8)
-
net9.0
- FluentValidation (>= 11.12.0)
- TedToolkit.Assertions (>= 2026.4.8)
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.4.8 | 73 | 4/8/2026 |
| 2026.3.20 | 85 | 3/20/2026 |
| 2026.2.4.1 | 102 | 2/4/2026 |
| 2026.2.4 | 100 | 2/4/2026 |
| 2026.2.2.2 | 101 | 2/2/2026 |
| 2026.2.2.1 | 101 | 2/2/2026 |
| 2026.2.2 | 100 | 2/2/2026 |
| 2026.2.1.2 | 106 | 2/1/2026 |
| 2026.2.1.1 | 100 | 2/1/2026 |
| 2026.2.1 | 98 | 2/1/2026 |
| 2025.12.23.1 | 190 | 12/23/2025 |
| 2025.12.23 | 181 | 12/23/2025 |
| 2025.12.17 | 283 | 12/17/2025 |
| 2025.12.12.2 | 140 | 12/12/2025 |
| 2025.12.12.1 | 129 | 12/12/2025 |
| 2025.12.12 | 146 | 12/12/2025 |
| 2025.12.9 | 455 | 12/9/2025 |
| 2025.11.25 | 205 | 11/25/2025 |
| 2025.11.24.3 | 198 | 11/24/2025 |
| 2025.11.24.2 | 202 | 11/24/2025 |