Trellis.Testing
3.0.0-alpha.526
dotnet add package Trellis.Testing --version 3.0.0-alpha.526
NuGet\Install-Package Trellis.Testing -Version 3.0.0-alpha.526
<PackageReference Include="Trellis.Testing" Version="3.0.0-alpha.526" />
<PackageVersion Include="Trellis.Testing" Version="3.0.0-alpha.526" />
<PackageReference Include="Trellis.Testing" />
paket add Trellis.Testing --version 3.0.0-alpha.526
#r "nuget: Trellis.Testing, 3.0.0-alpha.526"
#:package Trellis.Testing@3.0.0-alpha.526
#addin nuget:?package=Trellis.Testing&version=3.0.0-alpha.526&prerelease
#tool nuget:?package=Trellis.Testing&version=3.0.0-alpha.526&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)
- OpenTelemetry.Api (>= 1.18.0)
- Trellis.Authorization (>= 3.0.0-alpha.526)
- Trellis.Core (>= 3.0.0-alpha.526)
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.526 | 23 | 9/30/2026 |
| 3.0.0-alpha.524 | 51 | 9/27/2026 |
| 3.0.0-alpha.520 | 74 | 9/25/2026 |
| 3.0.0-alpha.516 | 156 | 9/22/2026 |
| 3.0.0-alpha.513 | 60 | 9/22/2026 |
| 3.0.0-alpha.505 | 184 | 9/13/2026 |
| 3.0.0-alpha.495 | 239 | 8/24/2026 |
| 3.0.0-alpha.458 | 208 | 8/19/2026 |
| 3.0.0-alpha.455 | 132 | 8/19/2026 |
| 3.0.0-alpha.449 | 89 | 8/18/2026 |
| 3.0.0-alpha.447 | 92 | 8/18/2026 |
| 3.0.0-alpha.432 | 150 | 7/6/2026 |
| 3.0.0-alpha.428 | 136 | 7/3/2026 |
| 3.0.0-alpha.425 | 166 | 6/27/2026 |
| 3.0.0-alpha.419 | 98 | 6/24/2026 |
| 3.0.0-alpha.418 | 182 | 6/23/2026 |
| 3.0.0-alpha.417 | 92 | 6/23/2026 |
| 3.0.0-alpha.397 | 128 | 6/18/2026 |
| 3.0.0-alpha.396 | 90 | 6/18/2026 |
| 3.0.0-alpha.394 | 110 | 6/18/2026 |