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" />
<PackageReference Include="Trellis.Testing" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Trellis.Testing&version=3.0.0-alpha.304&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Trellis.Testing
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 assertions —
BeSuccess(),BeFailure(),BeFailureOfType<T>(), async variants - Maybe assertions —
HaveValue(),BeNone(),HaveValueEqualTo() - Error/Error.InvalidInput assertions —
HaveCode(),HaveFieldError() - Unwrap helpers — Extract values in test code without analyzer warnings
- FakeRepository — In-memory aggregate store with domain event tracking
- TestActorProvider — Mutable
IActorProviderfor 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 | Versions 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.
-
net10.0
- FluentAssertions (>= 7.2.2)
- Trellis.Authorization (>= 3.0.0-alpha.304)
- Trellis.Core (>= 3.0.0-alpha.304)
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 |