Trellis.Testing
3.0.0-alpha.394
See the version list below for details.
dotnet add package Trellis.Testing --version 3.0.0-alpha.394
NuGet\Install-Package Trellis.Testing -Version 3.0.0-alpha.394
<PackageReference Include="Trellis.Testing" Version="3.0.0-alpha.394" />
<PackageVersion Include="Trellis.Testing" Version="3.0.0-alpha.394" />
<PackageReference Include="Trellis.Testing" />
paket add Trellis.Testing --version 3.0.0-alpha.394
#r "nuget: Trellis.Testing, 3.0.0-alpha.394"
#:package Trellis.Testing@3.0.0-alpha.394
#addin nuget:?package=Trellis.Testing&version=3.0.0-alpha.394&prerelease
#tool nuget:?package=Trellis.Testing&version=3.0.0-alpha.394&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.394)
- Trellis.Core (>= 3.0.0-alpha.394)
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.418 | 40 | 6/23/2026 |
| 3.0.0-alpha.417 | 44 | 6/23/2026 |
| 3.0.0-alpha.397 | 92 | 6/18/2026 |
| 3.0.0-alpha.396 | 62 | 6/18/2026 |
| 3.0.0-alpha.394 | 78 | 6/18/2026 |
| 3.0.0-alpha.385 | 66 | 6/15/2026 |
| 3.0.0-alpha.382 | 68 | 6/12/2026 |
| 3.0.0-alpha.372 | 69 | 6/10/2026 |
| 3.0.0-alpha.360 | 81 | 6/7/2026 |
| 3.0.0-alpha.342 | 82 | 6/5/2026 |
| 3.0.0-alpha.337 | 75 | 6/3/2026 |
| 3.0.0-alpha.336 | 58 | 6/3/2026 |
| 3.0.0-alpha.304 | 76 | 5/29/2026 |
| 3.0.0-alpha.158 | 114 | 4/5/2026 |
| 3.0.0-alpha.157 | 72 | 4/4/2026 |
| 3.0.0-alpha.140 | 79 | 3/30/2026 |
| 3.0.0-alpha.137 | 82 | 3/27/2026 |
| 3.0.0-alpha.135 | 61 | 3/26/2026 |
| 3.0.0-alpha.127 | 76 | 3/23/2026 |
| 3.0.0-alpha.123 | 74 | 3/19/2026 |