Fluent.Unions.Verify 1.1.0

dotnet add package Fluent.Unions.Verify --version 1.1.0
                    
NuGet\Install-Package Fluent.Unions.Verify -Version 1.1.0
                    
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="Fluent.Unions.Verify" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluent.Unions.Verify" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Fluent.Unions.Verify" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fluent.Unions.Verify --version 1.1.0
                    
#r "nuget: Fluent.Unions.Verify, 1.1.0"
                    
#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.
#:package Fluent.Unions.Verify@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fluent.Unions.Verify&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Fluent.Unions.Verify&version=1.1.0
                    
Install as a Cake Tool

Fluent.Unions

Fluent.Unions.Verify

NuGet Downloads Publish Documentation

Makes Verify snapshots of Result, Result<T>, your own result types, Option<T> and Loadable<T> readable: the case and its data, with no stack trace. It builds on Fluent.Unions and Verify.

Installation

dotnet add package Fluent.Unions.Verify

Usage

Call VerifyFluentUnions.Initialize() once, for example from a module initializer in the test project.

using System.Runtime.CompilerServices;
using Fluent.Unions.Verify;

public static class ModuleInitializer
{
    [ModuleInitializer]
    public static void Initialize() => VerifyFluentUnions.Initialize();
}

Then verify results and options like any other value.

await Verify(Result.From(42));
await Verify(Option.Some(7));
{
  Ok: 42
}
{
  Some: 7
}

An error is written as { Error: { Type, Message } }, an Option<T> as None or { Some: value }, and a Loadable<T> as NotLoaded, Loading, { Value: value } or { Error: ... }. An error of your own result type is written as data. Initialize also tells Verify to leave stack traces out of exceptions.

License of Verify

Verify is MIT source, but its binaries carry the Open Source Maintenance Fee EULA: organisations with an annual gross revenue of US$10,000 or more pay a maintenance fee. Verify flows transitively through this package, so its build check (error SC021) asks every consuming project to declare a license position. Set one of these MSBuild properties in your test project or in Directory.Build.props:

  • Verify_GitHubSponsorAccount: sponsor on GitHub Sponsors.
  • Verify_SponsorshipLicensedUntil: a time-bounded license, as yyyy-MM.
  • Verify_SponsorshipExemption with Verify_SponsorshipExemptionUntil: a publisher-defined exemption such as OpenSource or SmallRevenue.

See the Verify maintenance fee for the current terms and options.

With your own result type

Verify snapshots any result type, including one declared with [FluentResult<TError>]. A value-less success writes Ok, a result with a value writes { Ok: ... }, and an error is written as data as before. See Your own Result type.

Documentation

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.1.0 94 11/22/2026
1.0.0 97 11/21/2026
0.3.0 103 11/20/2026