Pledge.Testing.TUnit
0.1.0-alpha.2
dotnet add package Pledge.Testing.TUnit --version 0.1.0-alpha.2
NuGet\Install-Package Pledge.Testing.TUnit -Version 0.1.0-alpha.2
<PackageReference Include="Pledge.Testing.TUnit" Version="0.1.0-alpha.2" />
<PackageVersion Include="Pledge.Testing.TUnit" Version="0.1.0-alpha.2" />
<PackageReference Include="Pledge.Testing.TUnit" />
paket add Pledge.Testing.TUnit --version 0.1.0-alpha.2
#r "nuget: Pledge.Testing.TUnit, 0.1.0-alpha.2"
#:package Pledge.Testing.TUnit@0.1.0-alpha.2
#addin nuget:?package=Pledge.Testing.TUnit&version=0.1.0-alpha.2&prerelease
#tool nuget:?package=Pledge.Testing.TUnit&version=0.1.0-alpha.2&prerelease
Pledge.Testing.TUnit
The TUnit adapter for Pledge.Testing: one test per contracted member of a type, each run as a property test of its Pledge contracts.
Alpha. The API can still change between pre-releases.
dotnet add package Pledge.Testing.TUnit --prerelease
using PledgeContracts.Testing.TUnit;
[Test, PledgedMembers(typeof(Account), Iterations = 1_000)]
public Task Account_pledges_hold(PledgeCase pledge) => pledge.CheckAsync();
Each member is its own test case, labelled with its signature, such as
Account.Withdraw(decimal). A member whose parameters cannot be generated, such as one taking a
Span<T>, is reported as skipped with the reason. Test output goes to the framework's output
for that test.
Support
Pledge is MIT-licensed and built in the open. If it saves you a bug or two, consider sponsoring its development.
Source and docs · Design · Issues · License
| 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
- Pledge.Testing (>= 0.1.0-alpha.2)
- TUnit.Core (>= 1.76.45)
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.1.0-alpha.2 | 32 | 10/30/2026 |
| 0.1.0-alpha.1 | 36 | 10/30/2026 |