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
<PackageReference Include="SnowBank.Testing.Common" Version="7.4.2" />
<PackageVersion Include="SnowBank.Testing.Common" Version="7.4.2" />
<PackageReference Include="SnowBank.Testing.Common" />
paket add SnowBank.Testing.Common --version 7.4.2
#r "nuget: SnowBank.Testing.Common, 7.4.2"
#:package SnowBank.Testing.Common@7.4.2
#addin nuget:?package=SnowBank.Testing.Common&version=7.4.2
#tool nuget:?package=SnowBank.Testing.Common&version=7.4.2
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 | Versions 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. |
-
.NETFramework 4.7.2
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Microsoft.Bcl.TimeProvider (>= 10.0.9)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging.Configuration (>= 10.0.9)
- Microsoft.Extensions.Options (>= 10.0.9)
- Microsoft.Extensions.TimeProvider.Testing (>= 8.10.0)
- Microsoft.NET.Test.Sdk (>= 18.7.0)
- NodaTime (>= 3.3.2)
- NodaTime.Testing (>= 3.3.2)
- NUnit (>= 4.6.1)
- NUnit.Console (>= 3.22.0)
- NUnit.ConsoleRunner (>= 3.22.0)
- SnowBank.Core (>= 7.4.2)
- System.Collections.Immutable (>= 10.0.9)
- System.IO.Hashing (>= 10.0.9)
- System.IO.Pipelines (>= 10.0.9)
- System.Memory (>= 4.6.3)
- System.Threading.Channels (>= 10.0.9)
-
net10.0
- Microsoft.Extensions.Configuration.Binder (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Http (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging.Configuration (>= 10.0.9)
- Microsoft.Extensions.Options (>= 10.0.9)
- Microsoft.Extensions.TimeProvider.Testing (>= 8.10.0)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.1)
- Microsoft.Net.Http.Headers (>= 10.0.9)
- Microsoft.NET.Test.Sdk (>= 18.7.0)
- Microsoft.TestPlatform.TestHost (>= 18.7.0)
- Newtonsoft.Json (>= 13.0.4)
- NodaTime (>= 3.3.2)
- NodaTime.Testing (>= 3.3.2)
- NUnit (>= 4.6.1)
- NUnit.Console (>= 3.22.0)
- NUnit.ConsoleRunner (>= 3.22.0)
- OpenTelemetry.Api (>= 1.16.0)
- SnowBank.Core (>= 7.4.2)
- SnowBank.Networking.Http (>= 7.4.2)
- System.IO.Hashing (>= 10.0.9)
-
net11.0
- Microsoft.Extensions.Configuration.Binder (>= 11.0.0-preview.5.26302.115)
- Microsoft.Extensions.DependencyInjection (>= 11.0.0-preview.5.26302.115)
- Microsoft.Extensions.Http (>= 11.0.0-preview.5.26302.115)
- Microsoft.Extensions.Logging (>= 11.0.0-preview.5.26302.115)
- Microsoft.Extensions.Logging.Configuration (>= 11.0.0-preview.5.26302.115)
- Microsoft.Extensions.TimeProvider.Testing (>= 8.10.0)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.1)
- Microsoft.Net.Http.Headers (>= 11.0.0-preview.5.26302.115)
- Microsoft.NET.Test.Sdk (>= 18.7.0)
- Microsoft.TestPlatform.TestHost (>= 18.7.0)
- Newtonsoft.Json (>= 13.0.4)
- NodaTime (>= 3.3.2)
- NodaTime.Testing (>= 3.3.2)
- NUnit (>= 4.6.1)
- NUnit.Console (>= 3.22.0)
- NUnit.ConsoleRunner (>= 3.22.0)
- OpenTelemetry.Api (>= 1.16.0)
- SnowBank.Core (>= 7.4.2)
- SnowBank.Networking.Http (>= 7.4.2)
- System.IO.Hashing (>= 11.0.0-preview.5.26302.115)
-
net8.0
- Microsoft.Extensions.Configuration.Binder (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Http (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Logging.Configuration (>= 10.0.9)
- Microsoft.Extensions.Options (>= 10.0.9)
- Microsoft.Extensions.TimeProvider.Testing (>= 8.10.0)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.1)
- Microsoft.Net.Http.Headers (>= 8.0.28)
- Microsoft.NET.Test.Sdk (>= 18.7.0)
- Microsoft.TestPlatform.TestHost (>= 18.7.0)
- Newtonsoft.Json (>= 13.0.4)
- NodaTime (>= 3.3.2)
- NodaTime.Testing (>= 3.3.2)
- NUnit (>= 4.6.1)
- NUnit.Console (>= 3.22.0)
- NUnit.ConsoleRunner (>= 3.22.0)
- OpenTelemetry.Api (>= 1.16.0)
- SnowBank.Core (>= 7.4.2)
- SnowBank.Networking.Http (>= 7.4.2)
- System.IO.Hashing (>= 10.0.9)
- System.IO.Pipelines (>= 10.0.9)
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.