Trellis.Testing
3.0.0-alpha.524
dotnet add package Trellis.Testing --version 3.0.0-alpha.524
NuGet\Install-Package Trellis.Testing -Version 3.0.0-alpha.524
<PackageReference Include="Trellis.Testing" Version="3.0.0-alpha.524" />
<PackageVersion Include="Trellis.Testing" Version="3.0.0-alpha.524" />
<PackageReference Include="Trellis.Testing" />
paket add Trellis.Testing --version 3.0.0-alpha.524
#r "nuget: Trellis.Testing, 3.0.0-alpha.524"
#:package Trellis.Testing@3.0.0-alpha.524
#addin nuget:?package=Trellis.Testing&version=3.0.0-alpha.524&prerelease
#tool nuget:?package=Trellis.Testing&version=3.0.0-alpha.524&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.524)
- Trellis.Core (>= 3.0.0-alpha.524)
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.524 | 37 | 9/27/2026 |
| 3.0.0-alpha.520 | 53 | 9/25/2026 |
| 3.0.0-alpha.516 | 146 | 9/22/2026 |
| 3.0.0-alpha.513 | 50 | 9/22/2026 |
| 3.0.0-alpha.505 | 182 | 9/13/2026 |
| 3.0.0-alpha.495 | 235 | 8/24/2026 |
| 3.0.0-alpha.458 | 207 | 8/19/2026 |
| 3.0.0-alpha.455 | 131 | 8/19/2026 |
| 3.0.0-alpha.449 | 88 | 8/18/2026 |
| 3.0.0-alpha.447 | 90 | 8/18/2026 |
| 3.0.0-alpha.432 | 149 | 7/6/2026 |
| 3.0.0-alpha.428 | 135 | 7/3/2026 |
| 3.0.0-alpha.425 | 164 | 6/27/2026 |
| 3.0.0-alpha.419 | 97 | 6/24/2026 |
| 3.0.0-alpha.418 | 180 | 6/23/2026 |
| 3.0.0-alpha.417 | 91 | 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 |
| 3.0.0-alpha.385 | 93 | 6/15/2026 |