NCode.Coordination.Testing 0.16.2

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package NCode.Coordination.Testing --version 0.16.2
                    
NuGet\Install-Package NCode.Coordination.Testing -Version 0.16.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="NCode.Coordination.Testing" Version="0.16.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NCode.Coordination.Testing" Version="0.16.2" />
                    
Directory.Packages.props
<PackageReference Include="NCode.Coordination.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 NCode.Coordination.Testing --version 0.16.2
                    
#r "nuget: NCode.Coordination.Testing, 0.16.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 NCode.Coordination.Testing@0.16.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=NCode.Coordination.Testing&version=0.16.2
                    
Install as a Cake Addin
#tool nuget:?package=NCode.Coordination.Testing&version=0.16.2
                    
Install as a Cake Tool

NCode.Coordination.Testing

The conformance kit of NCode.Coordination: a contract suite per primitive that a provider's xUnit tests derive from.

Using it

Derive a sealed class from each suite the provider keeps and give it the provider under test, and, where the tests can, a way to advance its clock and a way to drop its connections:

public sealed class ValkeyLeaseContractTests : LeaseContractTests
{
    protected override ValueTask<ConformanceTarget> CreateTargetAsync(CancellationToken cancellationToken) =>
        ValueTask.FromResult(new ConformanceTarget(CreateProvider())
        {
            DropConnections = DropConnectionsAsync,
        });
}

Each suite covers its primitive's operations, edge cases and expiry, and skips what the provider declares unsupported. Concurrent runs race three clients on each primitive while every call and return is recorded, and a checker searches each key's history for a linearization against the primitive's sequential specification. Delivery checks hold notifications and record watches to at most once with gap detection, and fault runs pause a lease holder and drop connections. Each run checks only the guarantees the provider declares.

The repository's README has a quick start and the usage of each part.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.19.0 36 11/30/2026
0.18.0 49 11/30/2026
0.17.0 52 11/30/2026
0.16.4 51 11/29/2026
0.16.3 44 11/29/2026
0.16.2 51 11/29/2026
0.16.1 50 11/29/2026
0.16.0 53 11/29/2026
0.15.0 53 11/29/2026
0.14.2 53 11/28/2026
0.14.1 54 11/28/2026
0.14.0 56 11/28/2026
0.13.0 52 11/27/2026
0.12.0 61 11/27/2026
0.11.0 57 11/26/2026
0.10.0 70 11/26/2026
0.9.0 55 11/26/2026
0.8.0 55 11/26/2026
0.7.0 64 11/26/2026
0.6.0 59 11/25/2026
Loading failed