NCode.Coordination.Testing
0.16.2
Prefix Reserved
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
<PackageReference Include="NCode.Coordination.Testing" Version="0.16.2" />
<PackageVersion Include="NCode.Coordination.Testing" Version="0.16.2" />
<PackageReference Include="NCode.Coordination.Testing" />
paket add NCode.Coordination.Testing --version 0.16.2
#r "nuget: NCode.Coordination.Testing, 0.16.2"
#:package NCode.Coordination.Testing@0.16.2
#addin nuget:?package=NCode.Coordination.Testing&version=0.16.2
#tool nuget:?package=NCode.Coordination.Testing&version=0.16.2
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 | 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
- NCode.Coordination.Abstractions (>= 0.16.2)
- xunit.v3.assert (>= 4.0.3)
- xunit.v3.extensibility.core (>= 4.0.3)
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 |
See the changelog: https://github.com/NCodeGroup/Coordination/blob/HEAD/CHANGELOG.md