Trellis.Testing
3.0.0-alpha.382
dotnet add package Trellis.Testing --version 3.0.0-alpha.382
NuGet\Install-Package Trellis.Testing -Version 3.0.0-alpha.382
<PackageReference Include="Trellis.Testing" Version="3.0.0-alpha.382" />
<PackageVersion Include="Trellis.Testing" Version="3.0.0-alpha.382" />
<PackageReference Include="Trellis.Testing" />
paket add Trellis.Testing --version 3.0.0-alpha.382
#r "nuget: Trellis.Testing, 3.0.0-alpha.382"
#:package Trellis.Testing@3.0.0-alpha.382
#addin nuget:?package=Trellis.Testing&version=3.0.0-alpha.382&prerelease
#tool nuget:?package=Trellis.Testing&version=3.0.0-alpha.382&prerelease
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. |
-
net10.0
- FluentAssertions (>= 7.2.2)
- Trellis.Authorization (>= 3.0.0-alpha.382)
- Trellis.Core (>= 3.0.0-alpha.382)
NuGet packages (2)
Showing the top 2 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 |
|
|
Trellis.Testing.Worker
Integration-test harness for BackgroundService workers built on Trellis - prewired IHost, FakeTimeProvider, TestActorProvider, domain-event capture, and tick-completion primitives |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-alpha.382 | 52 | 6/12/2026 |
| 3.0.0-alpha.372 | 57 | 6/10/2026 |
| 3.0.0-alpha.360 | 79 | 6/7/2026 |
| 3.0.0-alpha.342 | 81 | 6/5/2026 |
| 3.0.0-alpha.337 | 71 | 6/3/2026 |
| 3.0.0-alpha.336 | 57 | 6/3/2026 |
| 3.0.0-alpha.304 | 74 | 5/29/2026 |
| 3.0.0-alpha.158 | 113 | 4/5/2026 |
| 3.0.0-alpha.157 | 70 | 4/4/2026 |
| 3.0.0-alpha.140 | 76 | 3/30/2026 |
| 3.0.0-alpha.137 | 79 | 3/27/2026 |
| 3.0.0-alpha.135 | 60 | 3/26/2026 |
| 3.0.0-alpha.127 | 74 | 3/23/2026 |
| 3.0.0-alpha.123 | 72 | 3/19/2026 |
| 3.0.0-alpha.118 | 75 | 3/14/2026 |
| 3.0.0-alpha.111 | 71 | 3/12/2026 |
| 3.0.0-alpha.104 | 83 | 3/9/2026 |
| 3.0.0-alpha.100 | 64 | 3/4/2026 |
| 3.0.0-alpha.99 | 62 | 3/4/2026 |
| 3.0.0-alpha.98 | 64 | 3/3/2026 |