Trellis.Testing 3.0.0-alpha.574

This is a prerelease version of Trellis.Testing.
dotnet add package Trellis.Testing --version 3.0.0-alpha.574
                    
NuGet\Install-Package Trellis.Testing -Version 3.0.0-alpha.574
                    
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.574" />
                    
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.574" />
                    
Directory.Packages.props
<PackageReference Include="Trellis.Testing" />
                    
Project file
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.574
                    
#r "nuget: Trellis.Testing, 3.0.0-alpha.574"
                    
#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.574
                    
#: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.574&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Trellis.Testing&version=3.0.0-alpha.574&prerelease
                    
Install as a Cake Tool

Trellis.Testing

NuGet Package

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 actor/identity provider with shared async-flow scoping
  • Identity agreement — await actorProvider.ShouldHaveConsistentActorIdentityAsync(identityProvider, ct) compares sequential resolutions with provider-specific diagnostics

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 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.

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.574 63 10/14/2026
3.0.0-alpha.571 62 10/13/2026
3.0.0-alpha.557 135 10/8/2026
3.0.0-alpha.554 97 10/8/2026
3.0.0-alpha.553 56 10/7/2026
3.0.0-alpha.542 107 10/5/2026
3.0.0-alpha.539 74 10/4/2026
3.0.0-alpha.532 111 10/2/2026
3.0.0-alpha.527 90 10/1/2026
3.0.0-alpha.526 61 9/30/2026
3.0.0-alpha.524 67 9/27/2026
3.0.0-alpha.520 87 9/25/2026
3.0.0-alpha.516 223 9/22/2026
3.0.0-alpha.513 68 9/22/2026
3.0.0-alpha.505 192 9/13/2026
3.0.0-alpha.495 245 8/24/2026
3.0.0-alpha.458 222 8/19/2026
3.0.0-alpha.455 174 8/19/2026
3.0.0-alpha.449 98 8/18/2026
3.0.0-alpha.447 101 8/18/2026
Loading failed