Trellis.Testing 3.0.0-alpha.304

This is a prerelease version of Trellis.Testing.
dotnet add package Trellis.Testing --version 3.0.0-alpha.304
                    
NuGet\Install-Package Trellis.Testing -Version 3.0.0-alpha.304
                    
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="Trellis.Testing" Version="3.0.0-alpha.304" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Trellis.Testing" Version="3.0.0-alpha.304" />
                    
Directory.Packages.props
<PackageReference Include="Trellis.Testing" />
                    
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 Trellis.Testing --version 3.0.0-alpha.304
                    
#r "nuget: Trellis.Testing, 3.0.0-alpha.304"
                    
#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 Trellis.Testing@3.0.0-alpha.304
                    
#: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=Trellis.Testing&version=3.0.0-alpha.304&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Trellis.Testing&version=3.0.0-alpha.304&prerelease
                    
Install as a Cake Tool

Trellis.Testing

NuGet Package

FluentAssertions extensions and test doubles that make Result and Maybe tests read like intent instead of plumbing.

Installation

dotnet add package Trellis.Testing

Quick Example

using FluentAssertions;
using Trellis;
using Trellis.Testing;

var result = Result.Ok(42);
var maybe = Maybe.From("Ada");

result.Should().BeSuccess().Which.Should().Be(42);
maybe.Should().HaveValue().Which.Should().Be("Ada");

Key Features

  • Result assertionsBeSuccess(), BeFailure(), BeFailureOfType<T>(), async variants
  • Maybe assertionsHaveValue(), BeNone(), HaveValueEqualTo()
  • Error/Error.InvalidInput assertionsHaveCode(), HaveFieldError()
  • Unwrap helpers — Extract values in test code without analyzer warnings
  • FakeRepository — In-memory aggregate store with domain event tracking
  • TestActorProvider — Mutable IActorProvider for authorization tests

For ASP.NET Core integration test helpers (WebApplicationFactory, DI replacement), see Trellis.Testing.AspNetCore.

Documentation

Part of Trellis

This package is part of the Trellis framework.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Trellis.Testing:

Package Downloads
Trellis.Testing.AspNetCore

ASP.NET Core integration test utilities for Trellis - WebApplicationFactory helpers, DI service replacement, fake time providers, and MSAL token acquisition

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0-alpha.304 60 5/29/2026
3.0.0-alpha.158 96 4/5/2026
3.0.0-alpha.157 67 4/4/2026
3.0.0-alpha.140 74 3/30/2026
3.0.0-alpha.137 77 3/27/2026
3.0.0-alpha.135 57 3/26/2026
3.0.0-alpha.127 70 3/23/2026
3.0.0-alpha.123 69 3/19/2026
3.0.0-alpha.118 73 3/14/2026
3.0.0-alpha.111 67 3/12/2026
3.0.0-alpha.104 79 3/9/2026
3.0.0-alpha.100 62 3/4/2026
3.0.0-alpha.99 60 3/4/2026
3.0.0-alpha.98 62 3/3/2026
3.0.0-alpha.95 61 3/2/2026
3.0.0-alpha.94 66 3/2/2026
3.0.0-alpha.93 65 3/1/2026
3.0.0-alpha.92 83 2/28/2026
3.0.0-alpha.83 64 2/27/2026