SnowBank.Testing.Common 7.4.2

dotnet add package SnowBank.Testing.Common --version 7.4.2
                    
NuGet\Install-Package SnowBank.Testing.Common -Version 7.4.2
                    
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="SnowBank.Testing.Common" Version="7.4.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SnowBank.Testing.Common" Version="7.4.2" />
                    
Directory.Packages.props
<PackageReference Include="SnowBank.Testing.Common" />
                    
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 SnowBank.Testing.Common --version 7.4.2
                    
#r "nuget: SnowBank.Testing.Common, 7.4.2"
                    
#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 SnowBank.Testing.Common@7.4.2
                    
#: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=SnowBank.Testing.Common&version=7.4.2
                    
Install as a Cake Addin
#tool nuget:?package=SnowBank.Testing.Common&version=7.4.2
                    
Install as a Cake Tool

SnowBank.Testing.Common

Base library for writing NUnit tests with the SnowBank SDK.

Concept

Derive your test fixtures from SimpleTest to get a consistent base for SnowBank-based tests: structured logging captured per test, helpers for assertions and for dumping values, deterministic setup (invariant culture, one-time warmup), a test-scoped cancellation token, and access to the SDK's testing conveniences such as virtual time and scoped CPU-load injection for reproducing load-dependent flakes.

It has no FoundationDB dependency: it is the shared NUnit base used across the SnowBank and FoundationDB test suites, and the foundation the higher-level SnowBank.Testing.Framework distributed-test harness builds on.

How to use

dotnet add package SnowBank.Testing.Common
public class MyFacts : SimpleTest
{
    [Test]
    public void Values_Round_Trip()
    {
        // `Log(...)` output is captured and attached to this test only
        Log("checking round-trip");

        var slice = Slice.FromStringUtf8("hello");
        Assert.That(slice.ToStringUtf8(), Is.EqualTo("hello"));
    }
}

SimpleTest also exposes the cancellation token bound to the test's lifetime and the virtual-time helpers used throughout the SDK's suites.

Testing distributed systems?

This package is the base for plain, single-process NUnit tests. When you need to test distributed behavior (several hosts talking to each other: web hosts, agents, even a real browser), reach for the companion SnowBank.Testing.Framework package. It builds on this one and lets you stand up a whole topology on an in-memory virtual network inside a single test.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.  net11.0 is compatible. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SnowBank.Testing.Common:

Package Downloads
SnowBank.Testing.Framework

SDK for writing tests for distributed .NET applications

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.4.2 44 7/13/2026
7.4.1 65 7/5/2026
7.4.0 83 5/1/2026
7.3.2 275 6/13/2025